function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ssssssssssssss 

Put URL or HTML in Validation Rule

Hi,

 

 

I need to put a hyperlink to a VF page, or a URL in the error message for a validation rule. Please help me if anyone of you has done this or have some ideas which can achieve this.

 

Thanks

Sumit

Vinita_SFDCVinita_SFDC

Hi Sumit,

Unfortunately your requirement can't be achieved since the error message of Validation rules show the message as text.

In the Error message is you specify http://www.google.com/ or <a href="http://www.google.com/"> Click here </a>, then it will be specified exactly as text message, it will not provide any hyperlink functionality.

 

Ii would suggest you to create a visualforce page and with <apex:pageMessages/> displays any error with any hyperlink.

 

Refer: http://salesforce.stackexchange.com/questions/8895/inserting-a-link-in-an-apexpages-message

 

http://boards.developerforce.com/t5/Visualforce-Development/Display-a-link-in-an-error-message-using-pageMessages/td-p/82348