Navigating to Main Page with Mobile App

Certified Associate Developer

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.


  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer

    Hi 

    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.

  • 0
    Certified Associate Developer
    in reply to SOMU LAKSHMI RAJA

    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