Skip to main content
March 25, 2022
Question

Error in collapsible box layout

  • March 25, 2022
  • 2 replies
  • 0 views

My requirement is whenever I have error inside a box layout the collapsible box layout should look like this

Can anyone help me with this please.

    2 replies

    stefanhelzle0001
    Brainy
    March 25, 2022

    By default, this boxLayout will un-collapse and show a similar message. Did you try that? Does it not fit your requirements?

    peter.lewis
    Employee
    March 25, 2022

    This is the default behavior of a box if there are validation errors in any of the fields in the contents of the box. Just make sure you have a validation or character limit and it should trigger this behavior. Here's an example:

    a!boxLayout(
      label: "Box Layout",
      contents: {
        a!textField(
          label: "Test",
          characterLimit: 2,
          value: "abc"
        )
      }
    )