I am trying to use the gform_validation hook to check against an array of codes that we will be sending out to customers. I need to form to only accept the codes that we are using.
I was hoping it was as simple as using the gform_validation to check against an array like so:
Ideally I would love to be able to check a table within our database, but I am not quite sure how that would be handled. Any help would be appreciated