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

Question

Question

Forms - Enable/Disable Submit Button

asked on February 27, 2015 Show version history

Hi,

 

We manage enabling/disabling submit button by matching field count based on "required" attribute and "user-success" class.

It works fine in case of new submission.

We also have "Save for Later" feature for the forms. We noticed that the "user-success" class does not get appended for required fields which are populated on load. This forces us to tab through all fields to enable to submit button.

 

Please let us know the options to avoid tabbing through populated fields in this scenario.

 

Thanks.
 

0 0

Replies

replied on March 2, 2015

I would create a function that loops through all of the fields that are normally required and check to see if they need to have their status changed because of data.  This way you could trigger it in the onload method (I believe the data is already populated by the time it gets to the onload on the page).

0 0
replied on March 3, 2015

Hello, 

You may also consider storing the count in a field. Default the field to 0 and add 1 for every tab the user clicks on. Then upon loading of the form, either initial load or after save, start the tally from the number inside of that field. 

I hope this helps! 

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

Sign in to reply to this post.