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

Put URL or HTML in Validation Rule




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.





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 or <a href=""> 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.