Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes you can. Make sure the field name ande url parameter have the same name. For instance:

    https://yourdomain.com?fname=carl

    In cf7:

    [Text fname default:get placeholder “first name”]

    Your form field will be pre filled if a parameter with Fname exists. Otherwise it shows the placeholder.

    Thread Starter OC2PS

    (@sooskriszta)

    Sorry, I think maybe I didn’t explain the question well.

    Let’s say I have a field [checkbox checkboxes "1" "2" "3"] in my Contact Form 7.

    Then, when I insert the shortcode for the form, can I pass the value of the checkbox via the shortcode, e.g.
    [contact-form-7 id="1" title="Contact" checkboxes="1"]

    Alternatively, what will also work for my use case is that if I can set the value of the checkboxes based on the slug or URL or title of the page on which the form is embedded.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I pass on parameters to CF7 from shortcode’ is closed to new replies.