Skip to main content
I am trying to ensure that when my users type in a group number that they aren't using the letter 'U' in the 7th position of the string they enter.

 

For example, for the field called "Group Code", if the user enters: 

 

ABC123D, this is OK.

 

ABC123U should fail and give them an error message because the letter U is in the 7th place of the group code they entered.

 

I have tried doing this as a Validation rule, but my formula isn't working. I'm thinking RegEx is my answer, but I don't fully know the format for this.
2 respuestas
  1. 11 sept 2019, 19:47
    Hi Jooly, 

     

    You could use the MID function for this. Maybe:

     

    UPPER(MID(Group_Code__c, 7, 1)) = "U"