Effortlessly build `data-rules` attribute
Simplify your workflow with our interactive JSON builder. Toggle, customize, and generate accurate data-rules attributes in seconds, ensuring flexibility and precision for your web development projects.
Choose the properties you need for your form fields. Simply toggle options, set their values, and watch your custom data-rules attribute come to life with ease.
required
Select a value for this property
minLength
Enter a value for this property
maxLength
Enter a value for this property
min (for type number fields)
Enter a minimum value
max ( for type number fields)
Enter a maximum value
match
Enter the value of the form name attribute where the fields should match
pattern
Enter the regular expression pattern you wish to use
Learn more about regular expressions on MDN
Password Requirements
Select password requirements
Download JSON file
*This generated code may contain syntax error. Please review before use!