Plugin Author
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 2 years, 7 months ago by
Yuval.
-
This reply was modified 2 years, 7 months ago by
Yuval.
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 🙂
Please anyone??
I can’t figure this out!!
Plugin Author
Yuval
(@yuvalsabar)
In the first form: [date* arrival placeholder "Arrival Date"]
In the second form: [hidden arrival default:get]
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 Author
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/
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
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 Author
Yuval
(@yuvalsabar)
Yes, but you need to make sure the select name in both forms is people
.
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??