How to use the form ID with PHP code?
-
Hi;
I’m trying to replicate this code from Contact Form 7 integration with MC4WP with WPforms:
if ($cf7_form_id == 500) { $subscriber->tags[] = 'ES'; } else if ($cf7_form_id == 510) { $subscriber->tags[] = 'NL'; }
I think the “$cf7_form_id” should be replaced with “$wpforms_form_id”, but I have problems with the Id. If I try with the number, it didn’t apply any tag. If I try with “wpforms-500” or “wpforms-form-500” it applies the first tag to any form…
Can you please help me?
Thank you in advance
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to use the form ID with PHP code?’ is closed to new replies.