Hello,
I'm building a membership site for a client. It's a paid site, and using s2member to control registrations. The catch is, he wants to be able to give out code(s) that would allow for free multiple month trials, without requiring the user to pay / signup afterwards. There isn't any way to do this s2member, other than using a free registration form. The obvious fallback to that, is he only wants people with the codes to have access to the free registration forms, not open to everyone...
Hence, I would like to use a simple Gravity Form on it's own page, asking the user to input their voucher code, and if that voucher code matches, accept it and redirect the user to the free registration form.
gform validation sounds like exactly what I need to do this, but I'm not sure how to modify the VIN example shown here http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook in the documentation.
It would only need to check one form field, for any of 3 possible hard-coded voucher codes, say, 'CODE-1', 'CODE-2' or 'CODE-3'
I assume the function for pulling the input data in the example remains the same, it's the check for function is_vin($vin) { that would need revised to check against a couple possible codes.
Would this be easy to modify?
Thanks for your thoughts, Jonathon