The following example returns a string value instead of true or false. Note that responsive should be false.
{
"groups": [{
"title": "Switch Example",
"properties": [{
"title": "Prices Inc VAT",
"id": "includeVATMessage",
"responsive": false,
"switch": {
"trueValue": "Price includes VAT",
"falseValue": "Price does not include VAT",
"default": true
}
}]
}]
}
To display this value in a template file, use {{display}}.
Responsive
When using a switch responsively, trueValue and falseValue should be set to a Tailwind class name. You'll then receive a list of Tailwind classes within your template, prefixed for each breakpoint as necessary.