-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.json
17 lines (17 loc) · 1.16 KB
/
sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ "sections" : [
{ "type": "selector", "values": ["Include", "Exclude", "Promote", "Demote"], "id": "action" },
{ "type": "text", "values": ["products that have", { "id": "article", "value": "a" }]},
{ "type": "selector", "default": " ", "values": "getFields", "onChange": { "function": "updateArticle", "params": ["#article"]}, "id": "field" },
{ "type": "text", "values": ["field with value matching"]},
{ "type": "selector", "values": [
{ "value": "value", "action": "textfield", "id": "fieldValue"},
{ "value": "value with condition", "sections": [
{ "type": "textfield", "id": "fieldValue", "onChange": {"function": "autoComplete", "params": ["#field"]} },
{ "type": "text", "values": ["when current product's"] },
{ "type": "selector", "values": "getFields", "default": " ", "id": "anchorField" },
{ "type": "text", "values": "is"},
{ "type": "textfield", "id": "anchorFieldValue", "onChange": {"function": "autoComplete", "params": ["#anchorField"]}}
], "id": "fieldValue"},
{ "value": "current product's", "sections": [{ "type": "text", "values": ["field value"] }] }
]}
]}