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
ankushankush 

Validation on long text area

I have a scenario where there is long text area where people can enter  either Blue, green, Orange or all three together or any two of the three. Can some one help me to write a validation rule for the same.
surasura
why a long text area for such a requirment ? multiselect picklist would have done that easily .Any how  could you tell me whether your text area only can contain above mentioned values
ankushankush
For some particular business requirement we need long text as they are coming from flow but yes they are the values. Either the text field can have any one of the (blue,green,orange) or all three or any combination of these 

like only blue
green
orange

blue green
green blue
blue,orange
orange blue
orange green
grren orange

orange blue green

Can you please help me out writing validation rule for this
ankushankush
Hi Sura,

            Can you help me write the Validation rule for this requirement. It can contain one or more values of these three options. Thanks for the help in advance
surasura
sorry for not replying , I tried but i could not get it working yet , I  am trying user REGEX function I think it will do the job but still could not get the expected result .
ankushankush
Hi Sura,

             I resolved on my own. no need of usig regex just used or function