I've checked and rechecked within the forums, but I can't find a topic or string that helps.
I want to either disable the Submit button or hide the section that houses the Submit button unless all the required fields on the form are completed. There are many required fields within different sections, but they are required only when those sections are visible to the user when they select a specific checkbox to unhide that section. My difficulty is that I can figure out how to disable or hid the Submit button if ONE of the sections and it's required fields fail validation, but I can't get this to work if I try and validate the fields in more that one section on the form......the Submit button remains disabled regardless of whether or not the required fields are completed.
Is there a way I can easily validate ALL required fields before enabling the Submit button? I would want something like this:
- Button "Review the form for errors"
- If any error found display message "There are validation errors on the form. These errors must be corrected BEFORE the Submit button will be enabled and the form can be submitted."
- 1. and 2. above would continue as many times as the user clicks on the "Review for errors" button until the # of errors = 0
- When # of errors = 0 then Submit button is enabled and the form can be submitted
Any help is greatly appreciated. Also, please note that I have zero eperiencing with writing either VBS or JS code.