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/examples/dynamic_forms/dynamic_forms.json

33 lines
1.0 KiB

{
"title": "Dynamic forms",
"forms": [
{
"name": "dyn_options",
"title": "Dynamic options",
"description": "The values for the target database are dynamically read from a script.",
"submit_title": "Import",
"script": "job_import.sh",
"fields": [
{
"name": "target_db",
"title": "Target database to import to",
"type": "radio",
"options_from": "form_dyn_options_target_db.sh"
},
{
"name": "sql_file",
"title": "SQL file",
"type": "file"
}
]
},
{
"name": "dyn_fields",
"title": "Dynamic fileds",
"description": "All the fields in this form are dynamically read from a script.",
"submit_title": "Import",
"script": "job_import.sh",
"fields_from": "form_dyn_fields.sh"
}
]
}