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
Manj_SFDCManj_SFDC 

and symbol in validation rule error message

How to use & symbol in validation rule error message, please help, trie with %26 its not working 
Thanks
Best Answer chosen by Manj_SFDC
Saroja MuruganSaroja Murugan

I think you need to contact salesforce support.
Maybe they can help you.
Thanks,
Saroja
Sweet Potato Tec

 

All Answers

Sorna JenefaSorna Jenefa
Hi,

Did you mean the concatenate operator & symbol?

Thanks
Jenefa
Sweet Potato Tec
Manj_SFDCManj_SFDC
I mean the error text has 2 words and I need & between them,  like "Account & Contact"
Sorna JenefaSorna Jenefa

Please try the below one:

CONTAINS(Display__c, '&')

Let me know if its works as you excepted.

Thanks,
Jenefa
Sweet Potato Tec
 
Manj_SFDCManj_SFDC
Thanks Jenefa
I am trying to use & symbol in the error meesage of the validation rule
for example, "you need mention the Account & Contact in the record" , when I use this , the error message is getting displayed as
"you need mention the Account & Contact in the record"
 
Saroja MuruganSaroja Murugan
Can you please share your screen shot.

When im create the error message in my org its shows the error message in correct format.

Please refer the below screen shot

User-added imageUser-added image
Thanks,
Saroja
Sweet Potato Tec
Manj_SFDCManj_SFDC
thanks can you please check this in the lightning experience
Saroja MuruganSaroja Murugan
Can you please refer the below screen shot

User-added image.

User-added image
Manj_SFDCManj_SFDC
Thanks but somehow I am facing the issue and strange thing is
only in lightning experience, any suggestions 
Saroja MuruganSaroja Murugan

I think you need to contact salesforce support.
Maybe they can help you.
Thanks,
Saroja
Sweet Potato Tec

 

This was selected as the best answer