0
votes

I am trying to add a link to an error message in an apex class. I found that this is working in classsic but not lightning. I have read sone articles stating that this is not supported in lightning but these were older articles. I am just wondering if there are any workarounds for this or any other way i can add a link to an error message in lightning.

This is my code: String url = URL.getOrgDomainUrl().toExternalForm()+'/'+exacc.Id; NewAcc.name.adderror('Account Name Already Exists: <a href=''+url+''>Duplicate Account', false);

Thanks Aivaras