• Resolved thenorth

    (@thenorth)


    Hi can someone tell me how I could extract the name and email variables from the submitted form and have them populate some script.
    I’m wanting to use Shopper Approved and want to pass the variable to the survey. The code is below. apprecite any help. Thanks.
    <script type="text/javascript"> var sa_values = { 'site':13567, 'name':'John Doe', 'email':'john.doe@gmail.com', 'forcecomments':1 }; function saLoadScript(src) { var js = window.document.createElement("script"); js.src = src; js.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1421969431000) saLoadScript("//www.shopperapproved.com/thankyou/rate/13567.js"); else saLoadScript("//direct.shopperapproved.com/thankyou/rate/13478.js?d=" + d.getTime()); </script>

    https://wordpress.org/plugins/form-maker/

Viewing 1 replies (of 1 total)
  • Plugin Contributor webdorado

    (@webdorado)

    Dear thenorth,

    As we understand, you need to take the name and the e-mail value of the submitted form. If so, please be informed, that in form-maker\frontend\models\FMModelForm_maker.php file there is the function save_db(), where all that data is kept. You can modify it as you need.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Data Variables’ is closed to new replies.