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.
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.
Thank You! I’ll try and let you know!
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,
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!