Use Case: In my embedded form I have a ‘select’ dropdown which provides several 'option’s wherein based on the selection (onchange event) the user made will set/remove the ‘required’ attribute of an HTML component.
In my script, I’ve added alert() functions just in order for me to confirm that my script is working and that the ‘required’ attribute is being set/removed. Here are my results:
When opt 1 is selected (this is selectIndex==1):
based on the above output I can conclude that the script is working and reflects the changes however I’ve noticed that even if the ‘required’ attrib is set, Camunda still allows me to proceed with the form submission, which based on Camunda’s default behavior should not be allowed until all required fields are filled up.
Can anybody help me identify what could possibly be wrong here? OR is this not possible to do within Camunda?