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
Adrian-EAdrian-E 

Simple Validation Rule

I seem to have gotten stuck!
I am looking to create a validation rule that will validate a field called ticket number:

The rule needs to check that the value:
1) begins with "LTK"
2) contains more than one number
3) ends with "X"

this is so simple, that I feel stupid asking...

:smileysad:
CharlyGCharlyG
Hi

If you have havent had a solution yet, this might help:

NOT(
AND(
Left(ticket_number_c,3)="LTK",
LEN(Ticket_Number_c)>5,
Right(ticket_number_c,1)="X"
)
)

Assuming ticket_number_c is your field name

Hope this helps,

Regards

Charly
Adrian-EAdrian-E

Thanks!

That worked like a charm!