How to make checkbox, choice and dropdown required? |
![]() ![]() ![]() |
The “required” attribute for these elements is much harder to perform because of their features in html specification. Alike for other fields, you need to specify them in config.php: Example: required_fields = interests (Interests) Also, you have to create hidden fields with the same names and blank values: Example: <input type="hidden" value="" name="interests"> <input type="checkbox" name="interests" value="Finance News">
|