dynamic link actions

how to show a confirmation message when performing action by using dynamic link?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi Raviteja, you can refer the code mentioned below.

    a!localVariables(
      local!showConfirmation_bool : false(),
      {
        a!cardLayout(
          showWhen: local!showConfirmation_bool,
          contents: {
            a!richTextDisplayField(
              value: {
                a!richTextItem(
                  text: "CONFIRM"
                )
              }
            )
          },
          link: {
            a!dynamicLink(saveInto: {
              a!save(
                local!showConfirmation_bool, false()
              )
            })
          }
        ),
        a!cardLayout(
          link: a!dynamicLink(
            saveInto: {
              a!save(
                local!showConfirmation_bool, true()
              )
            }
          ),
          showWhen: not(
            local!showConfirmation_bool
          ),
          contents: {
            a!richTextDisplayField(
              value: {
                a!richTextItem(
                  text: "SHOW CONFIRM Window"
                )
              }
            )
          }
        )
      }
    )

Reply
  • 0
    Certified Senior Developer

    Hi Raviteja, you can refer the code mentioned below.

    a!localVariables(
      local!showConfirmation_bool : false(),
      {
        a!cardLayout(
          showWhen: local!showConfirmation_bool,
          contents: {
            a!richTextDisplayField(
              value: {
                a!richTextItem(
                  text: "CONFIRM"
                )
              }
            )
          },
          link: {
            a!dynamicLink(saveInto: {
              a!save(
                local!showConfirmation_bool, false()
              )
            })
          }
        ),
        a!cardLayout(
          link: a!dynamicLink(
            saveInto: {
              a!save(
                local!showConfirmation_bool, true()
              )
            }
          ),
          showWhen: not(
            local!showConfirmation_bool
          ),
          contents: {
            a!richTextDisplayField(
              value: {
                a!richTextItem(
                  text: "SHOW CONFIRM Window"
                )
              }
            )
          }
        )
      }
    )

Children
No Data