You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
scriptform/test/test_formdefinition_validat...

152 lines
4.2 KiB

{
"title": "test",
"forms": [
{
"name": "test_required",
"title": "test_required",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "string",
"title": "field",
"type": "string",
"required": true
}
]
},
{
"name": "test_val_string",
"title": "test_val_string",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_string",
"title": "field",
"type": "string",
"minlen": 4,
"maxlen": 6
}
]
},
{
"name": "test_val_integer",
"title": "test_val_integer",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_integer",
"title": "field",
"type": "integer",
"min": 4,
"max": 6
}
]
},
{
"name": "test_val_float",
"title": "test_val_float",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_float",
"title": "field",
"type": "float",
"min": 2.1,
"max": 2.3
}
]
},
{
"name": "test_val_date",
"title": "test_val_date",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_date",
"title": "field",
"type": "date",
"min": "2015-03-02",
"max": "2015-03-05"
}
]
},
{
"name": "test_val_select",
"title": "test_val_select",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_select",
"title": "field",
"type": "select",
"options": [
["option_a", "Option A"],
["option_b", "Option B"]
]
}
]
},
{
"name": "test_val_checkbox",
"title": "test_val_checkbox",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_checkbox",
"title": "field",
"type": "checkbox"
}
]
},
{
"name": "test_val_checkbox_on",
"title": "test_val_checkbox_on",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_checkbox",
"title": "field",
"type": "checkbox",
"value": true
}
]
},
{
"name": "test_val_text",
"title": "test_val_text",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_text",
"title": "field",
"type": "text",
"minlen": 5,
"maxlen": 10
}
]
},
{
"name": "test_val_file",
"title": "test_val_file",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_file",
"title": "field",
"required": true,
"type": "file"
}
]
}
]
}