• Resolved Lech Dutkiewicz

    (@lech-dutkiewicz)


    I’m trying to implement a form that gets the default value for a select field from URL parameter. While it works well with a regular select field, when I put it in [md-select] shortcode, it doesn’t work at all.

    Am I doing something wrong or this functionality just isn’t implemented?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Addons for Contact Form 7

    (@contactform7addons)

    Hi @lech-dutkiewicz,

    Thanks for letting me know about this. I’ll take a look and try to get it working for you, then release an update. I will let you know when it’s done.

    Thanks,
    Angus

    Plugin Contributor Addons for Contact Form 7

    (@contactform7addons)

    Hi @lech-dutkiewicz,

    Are you sure your select field works when you remove the [md-select] shortcode from around it? I’ve just tried and for me it doesn’t work either way.

    The CF7 documentation on default:get also doesn’t mention that it works on select fields…

    Thanks,
    Angus

    Thread Starter Lech Dutkiewicz

    (@lech-dutkiewicz)

    Hi, thanks for your reply.

    I’m sure it works without the shortcode. I’ll pass a link to you, but please visit first http://www.project-travel.pl/?internal, so your visit won’t be recorded with Google Analytics. This link creates a cookie, so I can filter out your future visits in Analytics.

    The link with CF7 form I’m giving you is to one of my conversion pages and I don’t want to mess up the statistics.

    Here is a link with ?camp=Oxford passed and the first form field is native CF7 select with default:get.

    http://www.project-travel.pl/obozy-jezykowe-dla-dzieci-2019/ferie/rejestracja/?camp=Oxford

    Plugin Author GusRuss89

    (@gusruss89)

    Hmm that’s strange then, I will have to figure out why it’s not working at all for me, then make sure it also works with my plugin.

    Thanks for letting me know. I will take another look.

    Plugin Contributor Addons for Contact Form 7

    (@contactform7addons)

    Ok, I figured out the reason it didn’t work for me was because default:get needs to go before the dropdown options.

    I’m now releasing v2.2.2 which should fix this issue.

    Thanks for your help on this.
    Angus

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘default:get doesn’t work for select fields’ is closed to new replies.