Add an HTML element to the form, and in the settings enter the HTML for a button, make sure it has the reset-form
class.
1 | <button class="reset-form" type="button">Reset</button> |
<button class="reset-form" type="button">Reset</button>
Then go to Forms → Settings → Custom CSS & JS and at the Custom JavaScript field add the following code.
1 2 3 4 5 6 | jQuery(function ($) { $('.reset-form').click(function () { $(this).closest('.quform-form').data('quform').reset(); return false; }); }); |
jQuery(function ($) { $('.reset-form').click(function () { $(this).closest('.quform-form').data('quform').reset(); return false; }); });