Survey Field validation

Prajwal G Vaish
Giga Guru

Hello Team,
How can we create a new field validation on any survey assessment field.
For example,
Below is the field, which is working fine, which has field validation which is OOTB

PrajwalGVaish_0-1724136890458.png

There are total 4 field validations OOTB as shown below 

PrajwalGVaish_1-1724136964084.png

Please can you let me know how we can create a new field validation, to meet our requirement
let say I have a string field named Incident, when user manually writes incident number it should validate if the given number is a valid incident number or not.
Thank you very much in advance

Thank you
Prajwal

1 REPLY 1

vinay167
Tera Contributor

Hello  Prajwal G Vaish

Please follow below steps:

1. you need to change 2 ACL and check admin override box or YOU CAN add MAINT role with you :

      a) sys_cs_field_script_validator (create)

      b) sys_cs_field_script_validator (write)

2. After this you are able to write script for example i wrote for validation (minimum 15 character in that field)

vinay167_1-1742459420749.png

3. select validation in survey

vinay167_2-1742459473949.png

Please mark helpful.