Mustafa_s
Member
Hi,
I'm looking for a way to ensure users cannot click the submit/save button if any of the form element validations fail. My main reason for wanting this is because I have 6 fileupload elements, where if I submit/save a record all 6 of the fileupload elements resets if there is a validation error, meaning I need to select the files when the page reloads. I know this is working as designed (for security reasons), where the fileupload elements reset the chosen files, but is there a work around?
Even if I use Ajax validation the behaviour is still the same, once the user hits the submit/save button the attachment fields reset if there is a validation error. Is there is a way to disable the submit/save button while there is an active validation error (such as: dropdown not selected, field not entered, etc).
Thanks!
I'm looking for a way to ensure users cannot click the submit/save button if any of the form element validations fail. My main reason for wanting this is because I have 6 fileupload elements, where if I submit/save a record all 6 of the fileupload elements resets if there is a validation error, meaning I need to select the files when the page reloads. I know this is working as designed (for security reasons), where the fileupload elements reset the chosen files, but is there a work around?
Even if I use Ajax validation the behaviour is still the same, once the user hits the submit/save button the attachment fields reset if there is a validation error. Is there is a way to disable the submit/save button while there is an active validation error (such as: dropdown not selected, field not entered, etc).
Thanks!