Need to show confirm box along with the record link before submitting the record

Vaishnavi38
Tera Contributor

Hi, 

 

I have a requirement to show a confirm box if they create a duplicate record. The confirm box should have the link of existing record. How can this be achieved. 

 

Thanks

2 REPLIES 2

Tai Vu
Kilo Patron
Kilo Patron

Hi @Vaishnavi38 

In JavaScript, alertprompt, and confirm boxes can only contain plain text.

If you're looking to show more complex messages, you can use addInfoMessage() to display a message with hyperlink, or you could create a custom UI page with your own OK and Cancel dialog for confirmation.

Could you provide more details on the operation where duplicate records are being created? What is the table involved, and how are users able to create these duplicates?

 

Cheers,

Tai Vu

ersureshbe
Giga Sage
Giga Sage

Hi, There is OOB UI Pages exist for your requirement. You should duplicate from original and modify the script based on your requirement. Please find below.

 

ersureshbe_0-1729589733667.png

 

Regards,
Suresh.