I am trying to bassistance plugin for my form validation, now my form consists of several radio button groups, some of them are “required”.
Now,
- how do I make sure that all those radio groups did recieve a value?
- Once the user have propely set them, where and how do I check the values of those radio buttons before proceeding with submission?
Are you asking how you can use the plugin? It’s pretty well-documented, but anyway these snippets should assist. Here I take a simple form with two lots of radio-button groups, validate them using the plugin. The main things to note in the validation code are that we have two handler callbacks (for ‘invalid’ and ‘success’ states) plus a set of validation rules to apply.
First, the example form:
… and second, the validation code:
Does that help?