PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

custom field validation using a database

  1. petitshoo
    Member

    I saw it alluded to here: http://www.gravityhelp.com/forums/topic/data-validation-for-coupon-codes that you can use the custom field validation along with a database for validation. I can't find how to do that anywhere though. Can you point me in the right direction?

    Thanks!

    Posted 7 years ago on Friday April 20, 2012 | Permalink
  2. David Peralty
    Administrator

    That post you linked includes all you need to know about Gravity Forms to be able to validate against entries in a database.

    You'll want to create a custom function that includes database queries to pull your data and then code to test it against submitted data and return results.

    Posted 7 years ago on Friday April 20, 2012 | Permalink
  3. petitshoo
    Member

    Unfortunately, the post is no help to me. I am a PHP novice and don't have any idea how to write this type of code based on the information provided.

    Posted 7 years ago on Saturday April 21, 2012 | Permalink
  4. petitshoo
    Member

    If you can, please point me in the right direction. I'm really in need of help in figuring this out before Sunday.

    Posted 7 years ago on Saturday April 21, 2012 | Permalink
  5. David Peralty
    Administrator

    You might want to hire a PHP developer to take on solving your issues as they could deal with all of them before your Sunday deadline.

    Posted 7 years ago on Saturday April 21, 2012 | Permalink
  6. is there any help on how to add coupons to the forms? and make them work with paypal please?

    Posted 7 years ago on Monday July 16, 2012 | Permalink
  7. David Peralty
    Administrator

    You can have a input field that says Coupon Code. You can have a product with a negative value that is only conditionally shown when the Coupon Code input box gets the right value. This will update the total, and thus the total sent to Paypal.

    Posted 7 years ago on Monday July 16, 2012 | Permalink
  8. Closed due to unrelated issues. Please begin a new topic if you need further assistance. Thank you.

    Posted 7 years ago on Tuesday July 17, 2012 | Permalink

This topic has been resolved and has been closed to new replies.