AnsweredAssumed Answered

webscript API field validation for country

Question asked by sudarshansinghan on Dec 12, 2017

I want to write a webscript API to create a person in the repository. This API accepts json for input parameters. it has users firstname,lastname,city,state,country etc. when input is fetched for country I want to validate it against correct country code. e.g country code should be US or IN or AR etc. I have datalist for country in the repository. please help me validate my country input against the values in the datalist