Hi !
1) I want to validate upon submission of the form (via http, not email)
2) I want the user to be able to edit the text field (fill, modify, erase, etc.)
3) I want to make sure that if the radio button is set to "yes", then the form cannot be submitted unless the text field has been filled
4) unfortunately it did not work.
I use LiveCycle Designer 8.05.2073.1.374024 Cipher: 128-bit. In the Script Editor, I added the following javascript test :
(radio_field.rawValue == "1") || (radio_field.rawValue == "2" && !text_field.isNull && text_field.rawValue.length > 1)
which (normally) says the following: validation is true if radio button is "no" or if radio is "yes" and text field is not null and text field is more than one character.
The test is added for the preSubmit event.
Now, if the "yes" radio button is clicked and the text field is empty, submission proceeds. Why ?