• Resolved linux4me2

    (@linux4me2)


    Although default:get works fine with text input fields to pass default values in the URL in CF7, passing the default value in the URL doesn’t seem to work for a select element.

    The following successfully sets the selected item to “Tennis”:

    [select your-sports default:2 "Football" "Tennis" "Pole-vault"]

    However, using the following code:

    [select your-sports default:get "Football" "Tennis" "Pole-vault"]

    and passing a URL like this:

    https://mydomain.com/contact-us/?your-sports=3

    doesn’t set the selected item to “Pole-vault”.

    Can anyone confirm that default:get doesn’t work with the select element, and that I’m not just doing something wrong?

    https://www.ads-software.com/plugins/contact-form-7/

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

    (@takayukister)

    Set its value.

    https://mydomain.com/contact-us/?your-sports=Pole-vault

    Thread Starter linux4me2

    (@linux4me2)

    Thanks Takayuki! I thought the $_GET worked with the index rather than the value. Once I used the value, it works great, with a selectable recipient with pipes as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Select and default:get Doesn't Work in CF7 4.4?’ is closed to new replies.