Skip to main content
New Participant
August 9, 2023
Question

Navigating to Main Page with Mobile App

  • August 9, 2023
  • 2 replies
  • 1 view

Hi Good Afternoon

Is there a way we can use a card as button to navigate to a page like we do on the desktop with a!safeLink().

The link it self will probably open a browser in the mobile, but I want to redirect inside the mobile app.


    2 replies

    Participating Frequently
    August 24, 2023

    Hi [mention:b2b384b97c244d35b9a9b7deac11b82e:e9ed411860ed4f2ba0265705b8793d05]

    As you mentioned card as button to navigate to a page. I have added a code by clicking on cardLayout it will navigate to Gmail(Have added Gmail URL in code) directly.

    Code:

    {
      a!cardLayout(
        contents: a!richTextDisplayField(
          align: "CENTER",
          value: a!richTextItem(
            text: concat(
              user(loggedInUser(), "firstName"),
              " ",
              user(loggedInUser(), "lastName")
            ),
            style: "STRONG",
            size: "LARGE",
            color: "#301934"
          )
        ),
        height: "AUTO",
        style: "TRANSPARENT",
        shape: "ROUNDED",
        showShadow: true,
        marginBelow: "STANDARD",
        tooltip: concat(
          "Please click on  ",
          user(loggedInUser(), "firstName"),
          " ",
          user(loggedInUser(), "lastName"),
          " for navigating Gmail"
        ),
        link: a!safeLink(uri: "https://mail.google.com/")
      )
    }


    Hope the above code will be helpful.

    Thank You.

    New Participant
    August 26, 2023

    Hi, ye that doesnt work on my iPad, on the app its not redirecting me to the page, but to a browser link.. and thats not how I want it to work