I wanted a toggle inside a group, but it turns out Cornerstone treats a toggle differently when it’s inside one. It displays the toggle next to the group name instead of under it alongside the other parameters.
Here is the code:
{
"Toggle" : {
"type" : "group",
"label" : "Toggle group",
"params" : {
"iconEnabled" : {
"label" : "toggle",
"type" : "toggle",
"initial" : "true"
}
}
},
"toggle" : {
"type" : "toggle"
}
}
Here is the screenshot:

Notice that cornerstone doesn’t respect the order of parameters written in JSON and puts the group below instead of on top.
I’m on Pro 6.9.2 and WordPress 7.1.