Validate SSN

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

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Chaitra R

    Your expression is not formatted correctly.

    First, "validations" expects one or more strings.  These strings will be shown as [failed] validation message(s) anytime they're present - meaning you would need to show the strings conditionally, something like this:

    validations: {
      if(
        [validation failure condition #1],
        "Validation Message 1",
        {}
      ),
      if(
        [validation failure condition #2],
        "Validation Message 2",
        {}
      ),
      [etc]
    }

    1/

Children
No Data