I have a problem with conditionally required fields. It works only partially. I will explain the situation:
I have a dropdown field with values from 0 to 9 and there are other fields: date fields and several text fields. The other fields become required if the selected values from the dropdown are either 2 or 6.
The problem is when I go from the value 6 or 2 to some other value then 2 and 6 in the dropdown. In other words, the other fields don't become optional after they were required. I was using the change event for the dropdown with java script as script language.
Here is a more simpler example with a option field which I also tried:
after that I click option 1:
and it's still required, although it shouldn't be. This time I was using the click event.
It works with option fields but what if the option field is a dropdown?
On the drop down it works only in validation but not perfectly.
I have a dropdown with values from 0 to 9. Values 0 and 1 are making the other fields optional and changing it to other values makes the other fields required or mandatory. It works if I go from 6 to 1 directly on the dropdown but if I go from 6 to 5 and then to 1, the other fields are still required. I need to switch directly from the value that makes the fields required to the value that makes the other fields optional.