Java Script assistance for validating postcode text entry in Qualtrics survey | XM Community
Skip to main content

Hi Qualtrics Community,
I am writing to seek assistance with developing Java Script code for a survey that I have created. The first part of the survey asks questions to determine eligibility to participate in the study. One component of the eligibility criteria is residential location. We are asking potential participants to enter their residential postcode, which we need to compare against an “approved” list of postcodes. If there is a match, then the participant will be taken to the next question. If the participant does not live in a postcode that is included in the study region, then the survey will need to terminate. I have searched in on XM community/contacted support and have found out the only way to do this is with Java Script (i.e. https://community.qualtrics.com/XMcommunity/discussion/1653/validating-specific-included-excluded-zip-codes-using-js).
We, unfortunately, do not have anyone in our team who is well versed in Java Script and was hoping that a colleague in this forum could assist us in creating a script we could use.
Thank you in advance. Please let me know if you require any additional information. 

Yes the steps mentioned in the post can be used for this, but you can also use web service for this.


Leave a Reply