• Resolved sflwa

    (@sflwa)


    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

    (@mbrsolution)

    Hi, you might like to check the following thread. It might help you with your question.

    Regards

    Thread Starter sflwa

    (@sflwa)

    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

    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

    (@mbrsolution)

    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.