Add 'Reset' or 'Clear' Button to form

Dcode warner asked on February 1, 2017 19:21

Is it possible to add a 'Reset Button' or 'Clear Form' button along with a submit button to a form in Kentico7? [screenshot] http://prntscr.com/e38idt

We don't' use the widget but implement through CMS desk > tools > forms

Correct Answer

Jim Spillane answered on February 1, 2017 20:06

In Defining custom form layout you can add a Submit button to the form. Then next to the Submit button add the HTML... <button type="reset" value="Reset">RESET</button>

1 votesVote for this answer Unmark Correct answer

Recent Answers


Zach Perry answered on February 1, 2017 19:52

You might be able to do it with some javascript:

$("#form")[0].reset();

Doesn't seem to work for any fields that use the CKEditor though.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.