Hi all,
I’ve been trying to find a way to make my custom form have a new compulsory field. Can’t find anything online on how to do it!
Any help would be greatly appreciated!
Screenshot of form code:
A user is seeking guidance on making a custom form field mandatory but hasn’t found clear instructions online. They’ve included screenshots of their form code for reference.
Solution provided:
required attribute directly to input elements that need to be compulsoryrequired attribute syntaxThe question appears resolved with this simple HTML-based approach, though no follow-up confirmation from the original poster is included.
Hi all,
I’ve been trying to find a way to make my custom form have a new compulsory field. Can’t find anything online on how to do it!
Any help would be greatly appreciated!
Screenshot of form code:
Hi there,
You may just add the “required” attribute on the inputs you want to be compulsory. It’s simple, check out this doc to have a few examples.
For instance: