Title: Integrate with Formidable or Gravity Forms??
Last modified: March 27, 2017

---

# Integrate with Formidable or Gravity Forms??

 *  Resolved [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/integrate-with-formidable-or-gravity-forms/)
 * Here is my workflow
 * Step 1)
    Buy product via WooCommerce – system generates license keys (this is
   working fine)
 * Step 2)
    Fill out form (1 entry per license key) – I have some SQL to update 
   the license key to active once it has been submitted –
 * Any thoughts on validating the license before they submit to make sure they only
   submit once??

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/integrate-with-formidable-or-gravity-forms/#post-8962700)
 * Hi, you might like to check the following [thread](https://wordpress.org/support/topic/the-same-licence-key-can-activate-all-my-prodcts/).
   It might help you with your question.
 * Regards
 *  Thread Starter [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/integrate-with-formidable-or-gravity-forms/#post-8963060)
 * mbrsolution –
 * Thanks for the suggestion – after I posted this I actually found a post from 
   a few years back in Gravity Forms Forum – I had to slightly modify this slightly
   to look at the database vs a txt file but other wise it works perfectly.
 * I then have a cron job which changes the status from pending to active when the
   form is submitted
 * [http://pastebin.com/7ANQh6Rc](http://pastebin.com/7ANQh6Rc)
 * There are 3 pieces to it:
 * lines 4-20, validate the code that is entered and return a validation error if
   it fails
    lines 25-35, the actual function to compare the entered code to all
   codes in your file lines 39-45, the confirmation redirect
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/integrate-with-formidable-or-gravity-forms/#post-8963179)
 * I am glad you solved your issue and thank you for sharing the solution above.
 * Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Integrate with Formidable or Gravity Forms??’ is closed to new replies.

 * ![](https://ps.w.org/software-license-manager/assets/icon-128x128.png?rev=1135848)
 * [Software License Manager](https://wordpress.org/plugins/software-license-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/software-license-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/software-license-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/software-license-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/software-license-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/software-license-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/integrate-with-formidable-or-gravity-forms/#post-8963179)
 * Status: resolved