You are viewing limited content. For full access, please sign in.

Question

Question

reset or clear form button before submission on a form

asked on February 14, 2018

Is there a way to clear a form before submission.  I am creating a form from a user pdf and they have three buttons on the form (reset form | print form | email form).  I have a handle on the print or email, however I don't recall ever having placed a 'reset' button a form.  I searched but I didn't find anything that addresses this specific issue.  Any ideas would be appreciated.  

 

 

0 0

Replies

replied on February 14, 2018 Show version history

If you are using one of the action buttons to act as the resets button then you can get the button class and change the type with javascript like: 

$( document ).ready(function() {

  $(".Submit").prop("type", "reset"); // or .Approve or .Reject
  
});

If you are building the button using a Custom HTML field then you can just do

<input type="reset">

 

2 0
replied on February 14, 2018

thank for the nugde.  I stopped thinking in html...

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.