AutoComplete Not Enforcing Required Parameter
I have a workflow that has a radio button group with two options, and based on that radio buttons group value one of two autocomplete boxes will appear (I'm doing this through a sub-workflow). I am also setting the required value of the visible item to true (and the hidden to false). However the form doesn't seem to be enforcing this "required" setting. I can see through the logs that the parameter is in fact set to true, but the form allows me to move on without adding in a value.
Any assistance is greatly appreciated.
-
Here is an export of that portion of the workflow if it helps.
0 -
I suspect that the form checks for the requirement of elements upon loading them, which would explain why it isn't catching these elements. If you insist upon setting validation dynamically then I recommend making use of "validate" events.
In this case, though, the easy thing is to set the "required" value on each of the boxes in the designer. It won't prevent form submission for an invisible element.
That was all incorrect speculation. You need to turn on validation on your submit button. You should still use the designer to just let the autoCompletes be required, though.
0 -
Perfect thanks Zack. I ended up setting the validation event in the each form element, and using your suggestion to simply turn it on via the click event. It all works correctly now. Not the most intuitive thing in my opinion, but it works.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare