• Resolved skopelos-tony

    (@skopelosvillas)


    Hi there,
    I just started using your great plugin and I have one task I’d love to accomplish.

    I have a small, 3 field form, on the home page and upon Submit, I have a redirection to a bigger form in another page.
    I chose the page from the Redirection menu and the:
    ‘Pass specific fields from the form as URL query parameters’ option.

    It does this fine but while I can see the parameters in the URL of the redirected page, it does not fill in the corresponding 3 fields on the bigger form there.
    The parameters I see in my URL are:
    https://mywebsite.com/redirectedpage/?arrival=2020-10-18&departure=2020-10-20&people=2
    So, ‘arrival’, departure’, ‘people’ are the parameters I’d like filled on the 2nd form.

    I’m using Elementor Free.
    What am I doing wrong (?) with this please? I’ve never set this up before..!!
    I appreciate your time in trying to help on this..!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @skopelosvillas,

    You can pass parameters to the 2nd form by using hidden field with default get value.

    For example, if you want to pass the user’s email, and the name of the field is your-email, you should pass it as a parameter, and add this to the 2nd form:

    [hidden your-email default:get]

    Yuval

    • This reply was modified 4 years, 1 month ago by Yuval.
    • This reply was modified 4 years, 1 month ago by Yuval.
    Thread Starter skopelos-tony

    (@skopelosvillas)

    Hi there Yuval,

    Thank you very much for your reply!!!

    So please, as I haven’t set this plugin before, how would my final field look like on the redirected form.
    This is what my field looks like right now:
    [date* arrival placeholder “Arrival Date”]

    I tried placing your field data above within this field, but it didn’t work and just brakes the field – so I’m not doing something right – obviously.

    Please help and this will be a great new skill for me ??

    Thread Starter skopelos-tony

    (@skopelosvillas)

    Please anyone??
    I can’t figure this out!!

    Plugin Contributor Yuval

    (@yuvalsabar)

    In the first form: [date* arrival placeholder "Arrival Date"]
    In the second form: [hidden arrival default:get]

    Thread Starter skopelos-tony

    (@skopelosvillas)

    Hi and thanks again for your help!

    Unfortunately, above shortcode makes the 2 fields in the 2nd form completely disappear…

    Am I suppose to put original code of 1st form together with your shortcode somehow?
    What am I missing please?

    Plugin Contributor Yuval

    (@yuvalsabar)

    I thought you wanted to pass this parameter to an hidden field.
    If you want to pass this parameter to a date field, change “hidden” to “date”.

    First form: [date* arrival placeholder "Arrival Date"]
    Second form: [date arrival default:get]

    It’s all in Contact Form 7 docs:
    https://contactform7.com/getting-default-values-from-the-context/

    Thread Starter skopelos-tony

    (@skopelosvillas)

    OK, so I solved most of the ‘mystery’ Yuval!

    The hidden property was basically doing exactly that: hiding whatever field I applied on!
    I had to put the same ‘default:get’ shortcode on both forms for it to work, like so:
    [date* arrival default:get] – without ‘hidden’ inside.

    I also had to tick again the ‘Pass all the fields from the form as URL query parameters’, although I don’t much like these values to appear in redirected url, (although not a big deal).

    The only field I can’t pass parameters as above was a dropdown field! When I put the same method above inside those fields: [select* people “No. of People?” “1” “2” default:get]
    …it made the field disappear altogether.
    Do you know anything for the Selector field..how could I pass that??

    Thank you

    Thread Starter skopelos-tony

    (@skopelosvillas)

    Never mind ??

    Looked outside cf7 documentation and found the solution that works:
    [select* people default:get “No. of People?” “1” “2”]

    So for this to happen, I have to ‘Pass all the fields from the form as URL…’ don’t I??

    Thank you for your help and patience Yuval.. ??

    Plugin Contributor Yuval

    (@yuvalsabar)

    Yes, but you need to make sure the select name in both forms is people.

    Thread Starter skopelos-tony

    (@skopelosvillas)

    It is indeed!

    Thanks for getting back!
    So to wrap this up Yuval, do I absolutely have to also pass these parameters in the url too??

    Yes.

    Thread Starter skopelos-tony

    (@skopelosvillas)

    Thank you!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Redirect with passing on parameters to another foorm.’ is closed to new replies.