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.
(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 ?