Collapsed field group

Question

How can I make a field group collapsed by default?

Answer

Field groups have a collapsed property. When you describe the field group, set the true value in the diff section.

An example for the OrderPageV2  schema, "Recipient information" field group.

diff: /**SCHEMA_DIFF*/[
    {
        "operation": "merge",
        "parentName": "OrderResultsTab",
        "name": "OrderReceiverInformationResultsControlBlock",
        "values": {
            "controlConfig": {"collapsed": true}
        }
    },
]/**SCHEMA_DIFF*/

 

Like 0

Like

Share

0 comments
Show all comments