+ Start a Discussion
shariqs88shariqs88 

How to show error message while saving Content Version?

Hi,

 

 

When we add tags to some object say opportunity, salesforce allows to save tags that contain comma, underscores, dashes, letters and numbers. Special symbols and characters are not allowed.

 

Now what i am trying to achieve is as follows:

 

I am trying to upload a file to workspace using content version object. While uploading the file i am also adding some tags. So even when the user enters special symbols he is allowed to save the file and the tags also appear in workspace. I want to force the user to only enter numbers, dashes, letters, underscores, comma. If he enters other values, he must get an error message.

TrueCloudTrueCloud

Can't you do this by using Validation rules?