The CreatorCon Call for Content is officially open! Get started here.

Are there postcode validation in ServiceNow?

peterraeves
Mega Guru

For example, if you enter a certain postcode in the postcode field, does the system check if that is a valid postcode for the country of the user? If not, can we easily implement this?

1 ACCEPTED SOLUTION

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Peter



I don't think there is anything specific on the other hand you can try creating a validation script if the field exists as type



Validation_Scripts___ServiceNow.png



Otherwise you need to set up some client script using regular expressions or creating something even more complex maybe supported by new database tables.



I hope this will help/answer you question and if it does please mark it



Cheers


R0b0


View solution in original post

4 REPLIES 4

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Peter



I don't think there is anything specific on the other hand you can try creating a validation script if the field exists as type



Validation_Scripts___ServiceNow.png



Otherwise you need to set up some client script using regular expressions or creating something even more complex maybe supported by new database tables.



I hope this will help/answer you question and if it does please mark it



Cheers


R0b0


I hate it when people beg for likes or marks, but I guess your answer is the correct one


Heh...came across this and yea, it's 5 years later now, but it's quite funny that somehow you came to the conclusion that the free advice you @peterraeves received above and his small note about if it helps, please mark it, was him "begging for likes or marks".

I hope you've had a nice experience on the Community forums in all these years as you've asked 231 questions now at this point.

The response may not have been what you wanted or had hoped for, but please remember that we are not getting paid to help here. We do it because we care and like to help others. The small gesture of marking something as helpful or correct is a respectful nod towards the help you've received and also indicates to future readers what was helpful or correct to your question. So it's not only for yourself, but for others as well.

Thanks for your understanding!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Ivano B
ServiceNow Employee
ServiceNow Employee

Thank you Peter. Very much appreciated