setResponse

Sets the response of the form.

setResponse(form, response, options);

Parameters

Explanation

If you want the response to be automatically reset after a certain time, you can add a duration in milliseconds to the options. If the response changes in the meantime of the specified duration, the reset will be skipped.