Links on buttons

Certified Senior Developer

Why do buttonWidgets not have a linkField property? It would be ideal if they did.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Here is an example of using a CardLayout to simulate a button with a link.

    a!sectionLayout(
      label: "Form",
      contents: {
        a!localVariables(
          local!selected,
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  a!buttonArrayLayout(
                    buttons: {
                      a!buttonWidget(label: "Standard Button", style: "SOLID")
                    }
                  )
                }
              ),
              a!columnLayout(
                width: "NARROW",
                contents: {
                  a!cardLayout(
                    showBorder: false,
                    showShadow: false,
                    style: "ACCENT",
                    padding: "EVEN_LESS",
                    marginAbove: "NONE",
                    marginBelow: "NONE",
                    contents: a!richTextDisplayField(
                      align: "CENTER",
                      marginAbove: "NONE",
                      marginBelow: "LESS",
                      value: {
                        a!richTextItem(text: upper("Card Button"), color: "ACCENT")
                      }
                    ),
                    link: a!dynamicLink(
                      value: "BUTTON_VALUE",
                      saveInto: local!selected
                    )
                  )
                }
              )
            }
          )
        )
      }
    )

    Improved version from the one I posted in this thread: community.appian.com/.../card-layout

Reply
  • 0
    Certified Lead Developer

    Here is an example of using a CardLayout to simulate a button with a link.

    a!sectionLayout(
      label: "Form",
      contents: {
        a!localVariables(
          local!selected,
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  a!buttonArrayLayout(
                    buttons: {
                      a!buttonWidget(label: "Standard Button", style: "SOLID")
                    }
                  )
                }
              ),
              a!columnLayout(
                width: "NARROW",
                contents: {
                  a!cardLayout(
                    showBorder: false,
                    showShadow: false,
                    style: "ACCENT",
                    padding: "EVEN_LESS",
                    marginAbove: "NONE",
                    marginBelow: "NONE",
                    contents: a!richTextDisplayField(
                      align: "CENTER",
                      marginAbove: "NONE",
                      marginBelow: "LESS",
                      value: {
                        a!richTextItem(text: upper("Card Button"), color: "ACCENT")
                      }
                    ),
                    link: a!dynamicLink(
                      value: "BUTTON_VALUE",
                      saveInto: local!selected
                    )
                  )
                }
              )
            }
          )
        )
      }
    )

    Improved version from the one I posted in this thread: community.appian.com/.../card-layout

Children
No Data