Support » Plugin: Contact Form 7 Dynamic Text Extension » Problem with period in CF7_GET key

  • Hello,

    Thanks for the plugin – it’s awesome. I’ve been using it successfully for quite some time. I’m sorry if I have missed a solution to this due to my inability to effectively search your support forum.

    I have a url that looks something like this:

    http://forms.mywebsite.org/url?rft.btitle=War+and+peace&rft.aulast=Tolstoy

    I want to pass the information into my Contact Form 7 form like this:

    <p>Title of book [dynamictext btitle “CF7_GET key=’rft.btitle'”]</p>
    <p>Author [dynamictext aulast “CF7_GET key=’rft.aulast'”]</p>

    The form appears to be tripping up on the period in the key. The form works fine to pass information from the url, it just won’t populate any fields that have a period in them; an underscore (_) works fine so it’s not “special characters” per se. But I wonder if I need to escape the period or do something else to allow the plugin to “read” these keys.

    I am not able to change the source URL in any way. I have version 3.8.1 of Contact Form 7 and version 1.1.0.2 of Contact Form 7 – Dynamic Text Extension.

    Thank you!

    https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I should note that I’ve tried various combinations of curly braces, brackets, and slashes to escape the period on the hunch that this has something to do with the way php interprets the period. But I have had no luck so far.

    Hi

    This is my first post. I’m new to Contact Form and Contact Form Dynamic Text Extension. I have a slight problem with the populated email address showing up properly in the recipients address box. I’ve created my Contact Form and Dynamic Extension and have copied the code to my Test-Contact-Form page. Everything works great until I click on an email link I’ve created. When I click on the email link I created, the email address populates into the recipients email box but without the “@” present.

    This is the URL of the page that contains my email link: http://myrcs.ca/staff-directory

    This is the url of my Test Contact Form page: http://myrcs.ca/test-contact-form/?foo=rgrosemyrcs.ca

    You will notice that in the url and on the form page the “@” is missing from the email address. The email address should be: rgrose@myrcs.ca.

    I am running the latest version of WordPress, Contact Form 7 version 3.9 and Contact Form 7 – Dynamic Text Extension version 1.1.0.2

    Any help would be greatly appreciated.

    Thanks

    Did you resolve this? I have a similar problem here

    Sorry I forgot about the fact that I posted the problem here and didn’t follow up to report the outcome. One of my colleagues found a way to make this work by trial and error.

    Basically we just replaced the periods with underscores and it worked ok. I think we decided that it went back to the php.

    I’m not sure how that translates into a solution for bmartens and jkurzner. I wonder if there would be a way to parse the output from the first form so that the @ is escaped somehow in contact form 7. You may want to look at documentation on special characters in php. I literally know nothing about this since I’m not a real developer so I will end right here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with period in CF7_GET key’ is closed to new replies.