Hi Leona, can you provide an example of what you are trying to achieve?
Thank you
Thread Starter
Leona
(@wp-leona)
Ok, I have a page with 4 buttons.
These button would pass query parameters to the contact page, eg.
contact-form/?campaign=1 (or some value that can resolve to the form option)
Then in the form I’d have 4 options, which would be auto selected via this query parameter.
EG.
<option value="1" <? if ($_REQUEST['campaign'] == 1){ $echo " selected"; } ?> > campaign 1</option>
Hi, please check the following documentation. Let me know if this helps you.
Regards
Thread Starter
Leona
(@wp-leona)
Thank you, yes this does appear to be what I’m looking for, thank you.
Thread Starter
Leona
(@wp-leona)
One more question, are these fields customisable, it appears in the docs that these are fixed fields, ie name, address, etc, but if I wanted ‘campaign’ can I have that, the docs are not clear here.
-
This reply was modified 9 years, 7 months ago by
Leona. Reason: wanted to be notified of replies
Hi Loena, carry out a test and add a custom field and see if it can be done? I have not tested this feature myself.
Thread Starter
Leona
(@wp-leona)
Ok I’m reading the docs but I’m not ‘getting it’
So the docs read
Version 4.x and newer:
[form number]tag=[option number] (checked)
Example: form 3 using extra field 7 for radio (select option 2, no)
(Do you like Onions? yes, no)
?&3tag=2 (no) will be selected
So what do I put in the ‘Select Options’?
I have 4 options
1,’2 Cycles Per Hour’
2,’4 Cycles Per Hour’
3,’6 Cycles Per Hour’
4,’1 Cycles Per Day’
So I’d do /contact-us/?hire=1
Would select ‘2 Cycles Per Hour’
I just can’t see how I can make that happen from the options.
Thread Starter
Leona
(@wp-leona)
Arr, ok got it working, I had missed that I needed the form number, and the docs confused me a little.
I do think the docs need a little work, they’re not clear, took me a while to work it out.
It also works with ‘Selects’ that should be mentioned.
So I would add a ‘Select’ docs example eg.
For Forum number 1, with 4 fruit options,
Create a new field, select ‘Select’ from Type.
Give the field a tag name, eg fruits, add a form label of your choice.
Add the options, eg
Apples
Bananas
Oranges
Pears
The url has the following parameters, (ignoring the brackets)
?[formNumber][tagName]=[optionNumber]
So to preselect Bananas, from the first form, use the following url parameters
?1fruits=2
-
This reply was modified 9 years, 7 months ago by
Leona.
Hi Leona, I am glad you got it working. Sorry about the confusion in the documentation. The plugin developer will investigate further your request about the documentation.
Regards