Validate form contents before and after submit
Confluence User - 24 Jul, 2023
I have a requirement where a form should only be able to be submitted if some combination of values are entered. For instance, the user must enter values in 3 out of 5 fields, or if they enter a value in field A then they must enter a value in field B.
Assuming there is a way to do this in javascript, I would also like the validation checked on the server side so that just disabling or hiding the submit button is not enough to bypass the validation. Any thoughts or pointers?
forms;validation;security