Skip to main content
July 3, 2023
Question

How to put Validations for mentioned conditions

  • July 3, 2023
  • 7 replies
  • 0 views

Hi,

I need to put validation for two fields in below formats.

1. P (upper case).7 digits the user provided input should have first letter as capital P dot with 7 digits

2.  P (upper case).7 digits.2 digits the user provided input should have first letter as capital P dot with 7 digits and dot with 2 digits

Kindly suggest on this

7 replies

stefanhelzle0001
Brainy
July 3, 2023

Input fields in Appian have a validations parameter exactly made for this case.

July 3, 2023

Thank you for the update Stefan

Yeah within in the Validation parameter trying to build logic for the above scenarios but not working so need suggestion on applying logic to show validation if above scenarios doesn't match means

stefanhelzle0001
Brainy
July 3, 2023

Can you share what you tried so far?

mathieud0001
Brainy
July 3, 2023

I would suggest using a regex function that comes with the regular expressions plugin.

community.appian.com/.../regular-expression-functions

Take a look at ChatGPT for generating a regex that works for you.