Skip to main content
April 24, 2025
Question

validation in interface

  • April 24, 2025
  • 6 replies
  • 0 views

i have a requirement where i need to enter 25 digits for a text field and i don't allow the user to enter any alphabets or symbols i need write a validation this can be done with the help of regexmatch function but now it is deprecated how to write validation. pls help me with code.

    6 replies

    stefanhelzle0001
    April 24, 2025

    Who says this is deprecated?

    This alternative checks for each digit if it is in 0-9

    a!localVariables(
      local!string: "0956787x65678",
      all(contains(char(48 + enumerate(10)), _), char(code(local!string)))
    )

    April 24, 2025

    Hi Stefan correct me if i am wrong when i testing in interface it is showing this.

    April 24, 2025

    Hi [mention:95424a876f25420d9561835f63cb1e47:e9ed411860ed4f2ba0265705b8793d05]  

    Regex functions are from Appian Regular Expression Function plugin so your environment may not have that plugin added.

    Plug-in link - Appian Community

    May 2, 2025

    Alternatively, 
    You can use the dedicated field that servs this functionality.
    a!integerField()