Collapse all blocks in SAIL Code

Certified Lead Developer

Hi,

Is there any way to collapse all blocks of code in SAIL Form/SAIL code 

Thanks

Ajinkya

  Discussion posts and replies are publicly visible

Parents
  • Hi Ajinkya,

    Can you please try following code

    load(
    local!documentlink:0,
    a!formLayout(
    contents: {
    a!sectionLayout(
    contents: {
    a!richTextDisplayField(
    labelPosition: "COLLAPSED",
    value:a!richTextItem(
    text: if(
    local!documentlink =0,
    "( + ) Details ",
    "( - ) Details "
    ),
    style:"STRONG",
    link: a!dynamicLink(
    value: if (
    local!documentlink=0,
    1,
    0
    ),
    saveInto:local!documentlink


    )
    )
    )
    }
    ),
    if(
    local!documentlink=0,
    {},
    {
    a!textField(
    label:"Name",
    value: "Test Name",
    readOnly :true()
    ),
    a!textField(
    label:"Code",
    value: "Test Code",
    readOnly :true()
    )
    }
    )
    }
    )
    )

    Thanks,
    Sindhu

Reply
  • Hi Ajinkya,

    Can you please try following code

    load(
    local!documentlink:0,
    a!formLayout(
    contents: {
    a!sectionLayout(
    contents: {
    a!richTextDisplayField(
    labelPosition: "COLLAPSED",
    value:a!richTextItem(
    text: if(
    local!documentlink =0,
    "( + ) Details ",
    "( - ) Details "
    ),
    style:"STRONG",
    link: a!dynamicLink(
    value: if (
    local!documentlink=0,
    1,
    0
    ),
    saveInto:local!documentlink


    )
    )
    )
    }
    ),
    if(
    local!documentlink=0,
    {},
    {
    a!textField(
    label:"Name",
    value: "Test Name",
    readOnly :true()
    ),
    a!textField(
    label:"Code",
    value: "Test Code",
    readOnly :true()
    )
    }
    )
    }
    )
    )

    Thanks,
    Sindhu

Children
No Data