nos-forms-jquery
Version:
Build and validate DRY html forms in minutes with JSON, jQuery and Bootstrap
80 lines • 1.95 kB
JSON
[
{
"name": "emailexample",
"type": "email",
"label": "Email Example",
"required": true,
"placeholder": "Your Email",
"minlength": 1
},
{
"name": "select2",
"type": "select",
"title": "test",
"label": "Select Option",
"selected": "",
"options": {
"": "Select One...",
"value1": "First Value",
"value2": "Second Value",
"value3": "Third Value",
"value4": "Fourth Value"
}
},
{
"name": "cbExample",
"type": "checkbox",
"label": "Checkbox Example",
"submit": "object",
"inline": false,
"checked": "value2",
"options": {
"value1": "First Option",
"value2": "Second Option",
"value3": "Third Option"
}
},
{
"name": "radioExample",
"type": "radio",
"label": "Radio Example",
"inline": true,
"options": {
"value1": "First Option",
"value2": "Second Option",
"value3": "Third Option"
}
},
{
"name": "text2",
"type": "text",
"label": "Example 2",
"minlength": 1
},
{
"name": "txtmessage",
"type": "textarea",
"label": "Message",
"required": true,
"placeholder": "Your message",
"minlength": 5,
"maxlength": 200,
"rows": 8
},
{
"name": "submitForm",
"type": "submit",
"classname": "btn btn-success",
"formGroup": true,
"inline": true,
"value": "Submit"
},
{
"name": "myreset",
"type": "reset",
"classname": "btn btn-danger",
"formGroup": true,
"inline": true,
"value": "Reset"
}
]