firstPHP/form.json
2024-03-25 18:07:54 +03:00

58 lines
1.3 KiB
JSON
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"meta": {
"action": "some",
"id": "id_form"
},
"data": [
{
"type": "textInput",
"name": "email",
"placeholder": "Email",
"id": "emailId",
"label": {
"title": "Email", "for": "emailId", "class": "form-label"
},
"class": "form-control"
},
{
"type": "textInput",
"name": "phone",
"placeholder": "Телефон",
"class": "form-control",
"style": "color:RED;"
},
{
"type": "select",
"name": "select_city",
"class": "form-control",
"id": "cityId",
"label": {
"title": "Выберите город", "for": "cityId", "class": "form-label"
},
"value": 2,
"options": {"1": "Москва", "2": "Донецк", "3": "Ростов"}
},
{
"type": "textArea",
"name": "description",
"class": "form-control",
"placeholder": "Описание"
},
{
"type": "checkbox",
"name": "agree",
"class": "",
"id": "agreeId",
"label": {
"title": "Согласен с правилами", "for": "agreeId", "class": "form-label"
}
},
{
"type": "button",
"value": "Проверить",
"name": "btn",
"class": "btn btn-primary"
}
]
}