Create custom validation for participant ID | XM Community
Solved

Create custom validation for participant ID

  • 3 July 2018
  • 1 reply
  • 17 views

I am trying to create a custom validation for my participant ID field. The ID is put together by the first letter of the name of mother, the last letter of name of father, the month of birthday and the first and last letter of birthplace, e.g. MS06KN. I have tried to create a regex that will only allow responses in this format but have failed so far. Can someone please help?
Many thanks in advance!
icon

Best answer by TomG 3 July 2018, 16:47

View original

1 reply

Userlevel 7
Badge +27
Try ^[A-Z]{2}[0-9]{2}[A-Z]{2}$

Leave a Reply