Check Text Input Data Exists in Collection

Hello,

I am creating a website that enables users to create an account. However, before the user is allowed to create the account, I want the user to enter their post code (UK) first to check whether we are able to provide service in their area i.e. the post code to be entered by the user (via Text Input) will be checked against a pre-populated collection of a list of post codes, and it should give an “error message” if postcode entered is NOT found as an existing entry in my collection, otherwise allow the user to submit the form and create a member’s account.

Something similar to what exists on the site below is what I’m thinking of

Hi!

You’ll want to set up custom user input validation , likely using the onCustomValidation function. From there, you can set up an if/else statement which checks if you’re able to query the user’s input from your collection.