Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi silverinception,

    the only way is to edit the form output in PHP. However, you would need to redo this each and every time you upgrade to a new version.

    Let me know if you need instructions or any further assistance.

    Thread Starter silverinception

    (@silverinception)

    Thank Boris,

    That would not be a problem.

    Where exactly can I insert the code. I’m just interested in the Getresponse sections.

    Thanks.

    Hi silverinception,

    open up file /wp-content/plugins/optin-forms/includes/functions.php

    On line 211, change the following code:

    // add GetResponse identifiers
    	elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
    		return "<input type=\"hidden\" name=\"webform_id\" value=\"" . optinforms_form_webformid_getresponse() . "\" />";
    	}

    to

    // add GetResponse identifiers
    	elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
    		return "<input type=\"hidden\" name=\"webform_id\" value=\"" . optinforms_form_webformid_getresponse() . "\" /><input type="hidden" name="custom_tid" value="[tid]" />";
    	}

    Make sure you change the value of the custom_tid 😉

    Re-upload the file.

    Let me know if you’re able to get it to work.

    Thread Starter silverinception

    (@silverinception)

    Thank You! I’ll try and let you know!

    Thread Starter silverinception

    (@silverinception)

    Hey,

    I’ve tested it and it worked almost flawlessly 🙂

    Here there is a working version.

    // add GetResponse identifiers
    	elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
    		return "<input type=\"hidden\" name=\"webform_id\" value=\"" . optinforms_form_webformid_getresponse() . "\" /><input type=\"hidden\" name=\"custom_tid\" value=\"[tid]\" />";
    	}

    Thanks!

    Thread Starter silverinception

    (@silverinception)

    Hey,

    I’ve tested it and it worked almost flawlessly 🙂

    Here there is a working version.

    // add GetResponse identifiers
    	elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
    		return "<input type=\"hidden\" name=\"webform_id\" value=\"" . optinforms_form_webformid_getresponse() . "\" /><input type=\"hidden\" name=\"custom_tid\" value=\"[tid]\" />";
    	}

    Thanks!

    Hey silverinception,

    yeah, that’s it. Can’t belive I forgot the backslashes 🙂

    Glad you fixed it!

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

The topic ‘custom tid parameter for getresponse’ is closed to new replies.