Author:
Fluent Commerce
Changed on:
12 July 2024
1{
2 "title": "i18n:fc.admin.settings.index.title",
3 "actions": {
4 "primary": [
5 {
6 "type": "mutation",
7 "label": "i18n:fc.admin.settings.index.userAction.createSetting",
8 "name": "createSetting",
9 "overrides": {
10 "contextId": {
11 "component": "float"
12 },
13 "context": {
14 "component": "input",
15 "options": [
16 {
17 "label": "ACCOUNT",
18 "value": "ACCOUNT"
19 },
20 {
21 "label": "AGENT",
22 "value": "AGENT"
23 },
24 {
25 "label": "CUSTOMER",
26 "value": "CUSTOMER"
27 },
28 {
29 "label": "GLOBAL",
30 "value": "GLOBAL"
31 },
32 {
33 "label": "RETAILER",
34 "value": "RETAILER"
35 }
36 ]
37 },
38 "valueType": {
39 "component": "input",
40 "options": [
41 {
42 "label": "STRING",
43 "value": "STRING"
44 },
45 {
46 "label": "LOB",
47 "value": "LOB"
48 },
49 {
50 "label": "JSON",
51 "value": "JSON"
52 },
53 {
54 "label": "INTEGER",
55 "value": "INTEGER"
56 },
57 {
58 "label": "BOOLEAN",
59 "value": "BOOLEAN"
60 }
61 ]
62 },
63 "value": {
64 "sortPrefix": "5",
65 "select": [
66 {
67 "inputType": "float",
68 "condition": "{{in valueType 'INTEGER'}}"
69 },
70 {
71 "inputType": "input",
72 "condition": "{{in valueType 'BOOLEAN'}}",
73 "options": [
74 {
75 "label": "true",
76 "value": "true"
77 },
78 {
79 "label": "false",
80 "value": "false"
81 }
82 ]
83 },
84 {
85 "inputType": "input",
86 "condition": "{{in valueType 'STRING'}}"
87 }
88 ]
89},
90"lobValue": {
91 "sortPrefix": "6",
92 "select": [
93 { "label":"LOB value",
94 "inputType": "textArea",
95 "condition": "{{in valueType 'LOB' }}"
96 },
97 {
98 "inputType": "fc.attribute.jsoneditor",
99 "condition": "{{in valueType 'JSON'}}"
100 }
101 ]
102},
103 }
104 }
105 ]
106 }
107}
Language: json
Name: It is possible to configure fields as a dropdown and sort the order of displayed fields as it is on the example below:
Description:
[Warning: empty required content area]Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.