Skip to main content
Participating Frequently
Jun 2, 2022 11:33 AM UTC
Solved

Validate SSN

How to validate ssn in appian? format should be ###-##-####

    Participating Frequently
    Jun 2, 2022 12:31 PM UTC

    Without going ahead and creating the expression for you - I suggest creating an expression rule that checks the text value on length, structure (certain character types at certain indexes) using text functions, and returns a boolean output always.

    12 replies

    Participating Frequently
    Jun 2, 2022 12:31 PM UTC

    Without going ahead and creating the expression for you - I suggest creating an expression rule that checks the text value on length, structure (certain character types at certain indexes) using text functions, and returns a boolean output always.

    stefanhelzle0001
    Brainy
    Jun 2, 2022 12:56 PM UTC

    I think this would be a good case for the regular expression plugin.

    Participating Frequently
    Jun 2, 2022 1:34 PM UTC

    can we use regex in a!textfield()

    mikes0011
    Brainy
    Jun 2, 2022 1:38 PM UTC

    You can use regex pattern matching in any place you'd use other expression logic.  In this case, Stefan is referring to using it in the text field's "validations" parameter.

    The Expression Guru