- Tue Sep 05, 2017 2:18 pm
#795295
Hi,
I have a form (task2), where at the end of the Dynaform, the User can approve or reject the case and then press SUBMIT. If it's approved, it goes on to the next task (task3). If it's rejected, it will get routed back to the very first task (task1).
However, there is a bunch of controls that have validation on them (mostly required text fields) that the user needs to fill out before going to task3. However, if the user is rejecting the form, they shouldn't have to be required to fill out those fields.
I can disable each control's validation individually under an IF statement, but I was wondering if there a way using to disable ALL the controls through a for loop or something when REJECT is selected upon submission.
I have a form (task2), where at the end of the Dynaform, the User can approve or reject the case and then press SUBMIT. If it's approved, it goes on to the next task (task3). If it's rejected, it will get routed back to the very first task (task1).
However, there is a bunch of controls that have validation on them (mostly required text fields) that the user needs to fill out before going to task3. However, if the user is rejecting the form, they shouldn't have to be required to fill out those fields.
I can disable each control's validation individually under an IF statement, but I was wondering if there a way using to disable ALL the controls through a for loop or something when REJECT is selected upon submission.