How to show a hyperlink in force:showToast message in Salesforce Lightning

In my last post , I have shared few basic examples of showing message to user in force:showToast. Now its time to dig dipper and take some complex example :

As we discussed, we have MesssageTemplate & MessageTemplateDate to override messages. So, we will define our Url in MessageTemlateDate along with its Label.

This is how controller file will look like.

force:Toast with link Example:

For any queries, add your questions on Question/Answer page or in comment section. You can also connect to Technical Experts directly with Live Chat.

Hope it will help someone in need. #HappyLearning
Posted in Base Components and tagged , , , .

Leave a Reply

1 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
Dev Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

newest oldest most voted
Notify of

Thanks for sharing this, I was looking for the same requirement.