Field Collapsible

Certified Associate Developer

Hii All,

can anyone help me for one senerio . I want that to collapsible field 

For Example :

                  label: "Target",
                  labelPosition: "ABOVE",
                  value: index(local!target,"target",{}),
                  refreshAfter: "UNFOCUS",
                  characterLimit: null,
                  height: "SHORT",
                  readOnly: true,
                  validations: {}

I am using paragraph field for showing data then i want only some of the text only show when I click on the that text then the list of the text will show .


  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer

    Hello ,

    If it is only for the display purpose may be you can use the richTextDisplayField().

    Below is an example of how you can achieve. You can also write a dynamic rule to achieve this.

      local!view: 0,
      local!text: "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).",
      local!small: left(local!text, 100),
          label: "Lorem Ipsum",
          labelPosition: "JUSTIFIED",
          value: {
              text: if(
                local!view = 1,
                local!small & "...."
              text: if(local!view = 1, "(Less)", "(More)"),
              link: a!dynamicLink(
                value: if(local!view = 1, 0, 1),
                saveInto: local!view
              linkStyle: "STANDALONE"

    I hope this was your query.

  • 0
    Certified Senior Developer

    for more you can find in the patterns.