Grid and Flexbox layout

Hello:

I am trying to create an interface - similar to the Maintenance Request example in Appian but I would like to add a "Select" checkbox that is (vertically) aligned in the center with the text (in this case, 2019 Lexus E350).  Also, is there a way to include a check box without providing an option name since I would like the "Select Product" to be the column header.  I am creating a set of card layouts using a 'forEach() function.

Is there a way to implement Flexbox layout - I went through the SAIL document but the search yielded no results.

Thank you for your help.

Ma

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    try this

    {
      a!cardLayout(
        contents: {
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  /*this will work as margin*/
                  a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: { repeat(1, char(10)) },
                    marginBelow: "NONE"
                  ),
                  a!checkboxField(
                    labelPosition: "ABOVE",
                    choiceLabels: { "" },
                    choiceValues: { 1 },
                    saveInto: {},
                    validations: {}
                  )
                }
              ),
              a!columnLayout(contents: {}),
              a!columnLayout(
                contents: {
                  a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: {
                      a!richTextItem(
                        text: { "2019 Lexus OP" },
                        size: "LARGE",
                        style: { "STRONG" }
                      ),
                      char(10),
                      a!richTextItem(
                        text: { "Lorem Ipsum Random text" },
                        size: "MEDIUM"
                      )
                    },
                    align: "CENTER"
                  )
                }
              )
            }
          )
        },
        height: "AUTO",
        style: "ACCENT",
        padding: "EVEN_LESS",
        marginBelow: "STANDARD"
      )
    }

Reply
  • 0
    Certified Associate Developer

    try this

    {
      a!cardLayout(
        contents: {
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  /*this will work as margin*/
                  a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: { repeat(1, char(10)) },
                    marginBelow: "NONE"
                  ),
                  a!checkboxField(
                    labelPosition: "ABOVE",
                    choiceLabels: { "" },
                    choiceValues: { 1 },
                    saveInto: {},
                    validations: {}
                  )
                }
              ),
              a!columnLayout(contents: {}),
              a!columnLayout(
                contents: {
                  a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: {
                      a!richTextItem(
                        text: { "2019 Lexus OP" },
                        size: "LARGE",
                        style: { "STRONG" }
                      ),
                      char(10),
                      a!richTextItem(
                        text: { "Lorem Ipsum Random text" },
                        size: "MEDIUM"
                      )
                    },
                    align: "CENTER"
                  )
                }
              )
            }
          )
        },
        height: "AUTO",
        style: "ACCENT",
        padding: "EVEN_LESS",
        marginBelow: "STANDARD"
      )
    }

Children
No Data