Add Dynamic Values To Be Validated
-
Really like your plugin and have been looking for something similar for a while.
My use case is that I want users to enter an answer to a question which must be correct before the form can be submitted. I tested your plugin and know that this is possible.
However, I want to allow site members to add their own question/answer key pair as part of their membership. Site members would have a custom field(s) in their account area where they can enter their question/answer key pair.
What I’d like to do is have your plugin dynamically pull in the answer into the Regex validation based on the user id?
For example, User #10 could have a question from their custom meta field “What color is a stop sign?” (this would be on the webpage and not GF) and the answer is “red”. When a site visitor goes to the GF form to answer the question, their answer would be validated by your plugin.
Is it possible with a little code snippet to dynamically pull a validation pattern into your plugin?
- The topic ‘Add Dynamic Values To Be Validated’ is closed to new replies.