Field with partial validation

Mudugal Akhil
Tera Contributor

Need to create a Domain Field in the Catalog item with partial validation with list of predefined values.

Predefined values like 'com', 'In', 'gov', 'org' have around 200+ values .

Example: google.com is valid. Here google is a sample it can vary.

                 google.asdasd is In-valid entry.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Mudugal Akhil 

you can use onChange client script and check what the extension

to handle this you can use onChane + GlideAjax

the script include will fetch the extensions from system property which holds these comma separated 200 values and based on that you can validate

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Mudugal Akhil 

you can use onChange client script and check what the extension

to handle this you can use onChane + GlideAjax

the script include will fetch the extensions from system property which holds these comma separated 200 values and based on that you can validate

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar Thanks for the Solution. 

We have restrictions to use the Script include. Do we have any other alternate way through which we can achive this.

@Mudugal Akhil 

I don't know what's the restriction with script include.

the best way for your question is GlideAjax. Please discuss this with your technical lead.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader