You need to sign in to do that
Don't have an account?
Aivaras Geraltauskas 1
AddError with URL in Lightning
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.
Thanks,
Aivaras.
Thanks,
Aivaras.
String url = URL.getOrgDomainUrl().toExternalForm()+'/'+exacc.Id;
NewAcc.name.adderror('Account Name Already Exists: <a href=\''+url+'\'>Duplicate Account</a>', false);