• Hi, I get that you can use GET parameters as default values for Input fields. It’s pretty easy for type text, but it just wont work with radio button or checkboxes.

    I’m trying to create links for known customers, set preset some forms with their user data… for example the salutation. From the docs I can see, that you can use default with a number… but it doesn’t seem to work with get parameters. I’m using the following format:
    {link}?salutation=1&….

    Is this supported yet or am I using it wrong?

    https://wordpress.org/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Can I see your site?

    Thread Starter jozze_w

    (@jozze_w)

    No, it’s not public.
    But I’m talking about the principle behind this problem.

    I posted the URL format ({link}?salutation=1&…) and I’m using Contact Form 7 (v4.2.2). In the backend I use this shortcode:
    [radio salutation class:radio-salutation default:get “Mr” “Mrs” …]

    But Contact Form 7 does not recognize my default value…
    Is this even possible or do radio buttons and checkboxes only accept numbers as default values und no get parameters?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try setting the GET parameter as ?salutation=Mr.

    Thread Starter jozze_w

    (@jozze_w)

    I already tried that. This only works if i use text input fields, but not with radio buttons and checkboxes.

    I settled with an integer value, because the documentation stated, that the default value has to be (num)… so I thought that might help. But still nothing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Default values for radio buttons from GET variables’ is closed to new replies.