Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy B. Shapiro

    (@jeremyshapiro)

    Thanks for the heads up, folks. WordPresses 4.2.3 update was kind enough to break the way shortcodes process inside of HTML attributes. We’ve accommodated this change in the latest plugin update.

    Previous to this WordPress update, you could set a field value like this: <input type="text" name="firstname" value="[urlparam param='FirstName']">. Now you have to set it like this: <input type="text" name="firstname" [urlparam attr="value" param='FirstName']>.

    If you are still using this shortcode the old way, unfortunately, WordPress simply won’t process the shortcode and will return back the full shortcode text unprocessed.

    Thread Starter billlium

    (@billlium)

    Thanks Jeremy!

    Hello. I’m just getting started with coding so hopefully my question isn’t too annoying.

    I’ve tried setting the field values in the code with both the new and the old snippet of code you provided. The old one generates in the field: [urlparam param=’FirstName’] and the newer snippet doesn’t pull anything down from the URL and the field is left blank. Is there something I’m missing?

    For reference, I’m using infusionsoft forms.

    Thanks!

    Hello, I’m trying to do the same thing with Contact Form 7 – and it doesn’t work.

    I need to know if a visitor who filled the form came from paid traffic.

    So I added field <input type="text" name="utm_medium_name" [urlparam attr="value" param='utm_medium']> to the form template.

    And I add ?utm_medium=343 to the url query.

    After all, the filed appears at the page, but it is empty, the value from utm_medium doesn’t go through.

    Does it work with any other form plugin? Contact Form 7 is the most popular one so it would be great to it.

    I’d also like to make this field hidden, but this the second question, it should provide me with a value at first.

    Many thanks for your replies.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URL Params for Prefilling Form Fields’ is closed to new replies.