Simple Membership Plugin › Forums › Simple Membership Plugin › Form Builder Addon – Field Validation?
- This topic has 5 replies, 3 voices, and was last updated 10 years, 8 months ago by
johndotdoe.
-
AuthorPosts
-
March 26, 2016 at 11:14 am #6090
johndotdoe
ParticipantInterested in purchasing the form builder addon however there is one aspect of it that I haven’t been able to find much information on.
What are my options for validating the values entered into the fields by the users on the form? Say I only want to allow certain email addresses to register for a site. How does the addon manage validation against a list of valid email addresses… is it truly a list… can it validate against a column in a table… maybe a custom table of values?
Appreciate the help… screenshots would be appreciated.
March 26, 2016 at 10:58 pm #6096mbrsolution
ModeratorHi, the validation method is applied using a plugin. You can read more about it from this URL.
March 27, 2016 at 1:57 am #6100johndotdoe
ParticipantThanks for the response.
I took a look at the URL and that appears to me to be a function to validate the format of the email address. I’m interested in validating a field… any field really… doesn’t need to be an email address… against some list of valid values. In the email example… maybe a list of email addresses that are allowed to register. Maybe a more blatant example would be if I was to have the user enter a color value in a field on the form. Maybe I want to allow them to enter blue or yellow but not green. In some cases I also might want to provide them with a “dropdown” of valid values they can pick from where in other cases I want them to enter the value without picking from or seeing a list… but I still want to validate it to see if it is allowed.
March 27, 2016 at 2:25 am #6101mbrsolution
ModeratorHi, the plugin developers will further reply to your question.
Thank you
March 27, 2016 at 3:43 am #6104admin
KeymasterIt can’t validate the field against a given list of emails.
It validates the field to make sure an email address has been entered in the email field.
March 27, 2016 at 12:20 pm #6106johndotdoe
ParticipantThanks again.
I was thinking more about what you wrote… “…the validation method is applied using a plugin”. So am I to understand that the jQuery Validation Plugin comes bundled with the Form Builder Addon Plugin?
If this jQuery Validation Plugin is also installed would you agree that I could use the remote(options) method to achieve some of my requirements? It would seem this method allows me to specify a URL defining a .php file where my function would be stored. A little more custom solution than what I was looking for but it would seem it would at least allow me to vet for values deemed valid… blue and yellow but not green in my example. I would think in this custom .php I could take the value entered and check it against some table\repository of valid values and return back a true\false.
-
AuthorPosts
- You must be logged in to reply to this topic.