Reusable Lookup - smbc-digital/form-builder GitHub Wiki
Lookup allows the reuse of Options for certain element types list below. If a lookup and options are declared the lookup properties will be appended after the options declared within properties.
Please do not use 'dynamic as your lookup string. For info see dynamic lookup
[
{
"Text": "Apples",
"Value": "Apples",
"Hint": "Golden Delicious are amazing"
},
{
"Text": "Pear",
"Value": "Pear"
}
]
{
"Type": "Checkbox",
"Lookup": "fruits",
"Properties": {
"Hint": "You can select <strong>more than one option</strong>",
"Label": "The options within this checkbox are located within an external template",
"QuestionId": "CheckBoxList"
}
}
{
"Type": "Checkbox",
"Lookup": "fruits",
"Properties": {
"Hint": "You can select <strong>more than one option</strong>",
"Label": "The options within this checkbox are located within an external template",
"QuestionId": "CheckBoxList",
"Options": [
{
"Value": "apple",
"Text": "Apple"
}]
}
}