optional
is an option to ignore "add_quotes"
, "prefix"
, "suffix"
, and "validator"
when a text box is empty.
{
"gui": {
"command": "echo %-%",
"components": [
{
"type": "text",
"label": "Text box",
"optional": true,
"prefix": "-pre=",
"suffix": " -suf",
"validator": {
"regex": ".+"
}
}
]
}
}