Skip to main content
Chris Picking (ADS) ha fatto una domanda in #Formulas
I want to restrict the following characters ‘ “ , * % @ and if possible remove any extra spaces at the end of the field. I've found validation rules for allowing characters but none for just restricting, I don't really want to have to input every single charachter other than those listed above. (infact when I try to do that I get syntax errors). Any guidence would greatly be appreciated.
2 risposte
  1. 14 ott 2015, 22:27
    You can use this formula example to validate against usage of those special characters and checking if there are spaces at the end.

     

    OR(

    CONTAINS( Text_Field__c , "'"),

    CONTAINS( Text_Field__c , '"'),

    CONTAINS( Text_Field__c , ","),

    CONTAINS( Text_Field__c , "*"),

    CONTAINS( Text_Field__c , "%"),

    CONTAINS( Text_Field__c , "@"),

    CONTAINS(RIGHT(Text_Field__c, 1), " ")

    )

     
0/9000