• Resolved Leah

    (@edikitt)


    I understand if this is asking too much, but I figure it’s at least worth a shot ??

    I have some custom field data on all of my pages that I am passing to my contact forms in hidden fields. The data passes just fine when I submit the form on the main page, but does not pass when I submit the form from a popup.

    I DO notice that the popup form will pass other dynamic data that I’m capturing such as page ID, page URL, title, basically any of the WP-included post meta that I want to capture, but just not my custom field data.

    Any chance I can somewhat easily get this data to pass to my popup form? I was thinking of trying to append a query string to the href that triggers the popup, but that’s a rather clunky way of getting that data, which I’d like to avoid if possible.

    Thanks!

    • This topic was modified 8 years, 2 months ago by Leah.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian

    (@timersys)

    If you don’t have complex display riles which I guess you don’t if you are using manual triggering. You could disable ajax mode on the popup and that should do the trick

    Thread Starter Leah

    (@edikitt)

    Disabled Ajax as you suggested, but still couldn’t get it to work. Found a fix though.

    I’m using Contact Form 7 for my forms, but for some reason I wasn’t able to pass the data from within a popup form when using its built-in contextual tag options (i.e. [text my_custom_field default:post_meta], which should fill that field with whatever value the my_custom_field key is set to).

    However, when I used the “Contact Form 7 Dynamic Text Extension” plugin’s built-in feature for this (i.e. [dynamictext my_custom_field "CF7_get_custom_field key='my_custom_field'"], it worked fine.

    No idea why CF7’s built-in functionality wasn’t working. It’s fully possible that it’s an issue with CF7 and not your plugin.

    In any case, thank you so much (again) for all of your help over the last couple of weeks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any way to pass custom field data to popup?’ is closed to new replies.