Is there any possibility to navigating to Site page when we click on button or configured card as button?
Any insights or suggestions to achieve the same.
Our requirement is to navigate Record configured site page when we click on Link or button at interface.
Thanks in advance.
Discussion posts and replies are publicly visible
Hi Ramp,
Yes, It's possible.
Please try below sample code.
a!cardLayout( contents: { a!richTextDisplayField( value: a!richTextItem(text: "Navigate to Site Record", color: "ACCENT", ), align: "CENTER" ),
}, showShadow: true(), shape: "SEMI_ROUNDED", padding: "LESS", link: a!safeLink( uri: "Site link here with constant", ), height: "AUTO", style: "ACCENT" ),
Regards,
Devi
is it possible to configure safe link for button click as well?
If you are providing the page as part of the site URL, I'm not sure why it would not work correctly for you - we link to specific site pages without issues.
For the button link, as you cannot provide a 'link' parameter on a button, I would suggest reviewing the Cards as Buttons interface pattern.