Required/unrequired dependent on tick box
Hi Community, (originally posted under the wrong programm, and I use Acrobats DC Standard)
I am nearly getting to the end of my form and have managed to "calculate" my way through most things or find really good help within the community. However, I am struggling with something that's probably silly, but it's bugging me. I have found a really easy way of making a field required when a radio button is selected. In the MouseUp action of the relevant button, I have entered the following Java script: this.getField ("field_name").required = event.target.value!="off".
In all honesty I have no idea what this says except, that when this field is ticked, then the field called "field name" is showing up as required. Superb, brilliant and great. BUT and that's what I need help with. If someone changes their mind and changes the radio button selection, the field remains required but I don't want it to be. Surely it's possible to make this work with a further little bit onto that script. Anyone able to help?