Validation textField

IHelo,

I new in Appian, and,  I need to validate that in a texfield, the user on type characters,, I mean  (oaoa, mama, ect), NO number.

is there a special functions?

Could you hlp me please?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Sandhya

    Hi Sandhya, Please see below code, basically it checks whether a value exists or not in the array irrespective case, here main idea is to convert both array and value  in upper or lower case to make common case.

    a!localVariables(
      /* list of suppliers */
      local!supplierList: { "Dell", "Lenovo", "Hp" },
      /* Checks whether provided value exists or not in the given array */
      contains(
        touniformstring(
          a!forEach(
            items: local!supplierList,
            expression: upper(fv!item)
          )
        ),
        upper("dell")
      )
    )

    Replace array and value according to your data.

Children