• williamsuttle78

    (@williamsuttle78)


    I’ve successfully connect to Google Sheets for CF7 – fields are being created in Sheets… except for special mail tags, e.g. post-id. No matter what variations I try it will not send through to populate into sheets. I cannot seem to figure out what I’m doing wrong and didn’t see anything specific to this in the documentation. Any help is appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Nasir Ahmed

    (@nasirahmed)

    Hello,

    Please share the form link and a screenshot of the integration page. I want to see how the special tags are added. Did you used the following format?
    {{_user_ip}}, {{_user_agent}}, {{_site_title}}, {{_site_description}}, {{_site_url}}, {{_site_admin_email}}, {{_post_id}}, {{_post_name}}, {{_post_title}}, {{_post_url}}, {{_user_id}}, {{_user_first_name}}, {{_user_last_name}}, {{_user_last_name}}, {{_user_email}}

    Thread Starter williamsuttle78

    (@williamsuttle78)

    It appears everything is integrated as it should be – it correctly sends all form fields except for the special tag. It was not clear to me if I was also supposed to do anything in the actual form itself so I tried a bunch of different strategies – seems nothing I try will send the special tag details to sheets. Here is a link and my screenshot.

    Screenshot:

    https://avivabaldwinpark.com/form/

    Form

    https://avivabaldwinpark.com/

    Plugin Author Nasir Ahmed

    (@nasirahmed)

    Hello,

    Is it a custom theme? I looked at various pages, but they all show the same container post ID number 0. Each page should have its own unique post ID number. This is why the AFI plugin isn’t getting the correct Page/Post ID. I noticed that even the error 404 page has the form. So I’m curious how the form is added to all the pages. Did you use a shortcode?
    https://imgur.com/a/LFp1fUU

    Thread Starter williamsuttle78

    (@williamsuttle78)

    It is a custom theme that I didn’t build, unfortunately. It’s possible I’m using the wrong tag – what I’m trying to do is get the page url.

    Plugin Author Nasir Ahmed

    (@nasirahmed)

    Hi,
    The AFI plugin retrieves all page data based on the ID. It won’t work unless there is an ID provided. So, to make it work with AFI, need to fix it in the theme level. Once that’s done, the special tags will start functioning correctly.

    Thread Starter williamsuttle78

    (@williamsuttle78)

    The posts / pages have IDs, which can be seen by hovering over the edit link on the back-end. Figuring out why the theme is such that it cannot be read by the plugin sounds very involved. I do appreciate your time / help, thanks!

    Thread Starter williamsuttle78

    (@williamsuttle78)

    Hi, our developer has now added where the post id is present. In the integration we have the field {{_post_url}} – what are we supposed to put in the form itself so that sends? Thanks

    Plugin Author Nasir Ahmed

    (@nasirahmed)

    Hello,

    I checked the website again, but nothing has changed. Each Contact Form 7 form has some hidden fields included, like the form ID, form version, and the ID of the page where the form is located. You can find these hidden fields by using the inspect element feature on the page. I’ve attached a screenshot for reference; you can see that the form is attached to page ID 9. Normally, in a regular WordPress setup, these hidden fields are automatically generated by the CF7 plugin, so you don’t need to do anything extra.

    The AFI plugin works when a CF7 form is submitted. It grabs the ID and retrieves other information associated with that ID. However, on your website, I still see that the container post ID is showing as 0 on all the forms. So the AFI plugin also gets the ID as 0 and can’t retrieve other values. Please fix this, and hopefully, the issue will be solved.

    Thread Starter williamsuttle78

    (@williamsuttle78)

    Thanks for taking a second look and we’ll investigate. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘CF7 Special Tags not working’ is closed to new replies.