How to create different configuration fields in SCA

We can create different types of fields, such as input, checkbox, date, and array, in the SuiteCommerce configuration record, as shown below.

{
“type”:”object”,
“subtab”:{
“id”:”subtabid”,
“title”:”New Sub Tab”,
“description”:”To create a new subtab under Layout tab”,
“group”:”layout”
},
“properties”:{
“subtabid.stringfield”:{
“group”:”layout”,
“type”:”string”,
“subtab”:”subtabid”,
“title”:”Test String Field”,
“description”:”To create an input field under ‘New Sub Tab'”,
“default”:””
},
“subtabid.checkboxfield”:{
“group”:”layout”,
“subtab”:”subtabid”,
“type”:”boolean”,
“title”:”Test Checkbox Field”,
“description”:”To create an checkbox field under ‘New Sub Tab'”
},
“subtabid.datefield”:{
“group”:”layout”,
“subtab”:”subtabid”,
“type”:”string”,
“nsType”:”date”,
“title”:”Test Date Field”,
“description”:”To create an date field under ‘New Sub Tab'”
},
“subtabid.arrayfield”:{
“group”:”layout”,
“subtab”:”subtabid”,
“type”:”array”,
“title”:”Test Array”,
“description”:”To create an array under ‘New Sub Tab'”,
“items”:{
“type”:”object”,
“properties”:{
“tableheading1”:{
“type”:”string”,
“title”:”Labe l”,
“description”:””,
“translate”:true,
“mandatory”:true
},
“tableheading2”:{
“type”:”string”,
“title”:”Labe 2″,
“description”:””,
“translate”:true,
“mandatory”:true
}
}
}
}
}
}

Leave a comment

Your email address will not be published. Required fields are marked *