Pass dropdown fields value
-
Hi,
For “standard” fields like text, phone etc. you can pass a value to other plugins like the CF7 by refering to the value like “user_pie_text_4” but that is apparent not possible for a dropdownlist as it’s reference name is put like “pie_dropdown_6[]” – the “[]” is messing it up for some reason…
One way to overcome this is to create an extra text field, hide it in the registration form to the user and then pass/copy the value from the selected dropdown to this “pie_text_Xtra” field upon Submit. (Xtra = 25 or the likes).
Then you can pass the value into a CF7 form by […….; default:user_pie_text_Xtra;]So the questions are:
1) is there a workaround for passing the “user_pie_dropdown_6[]” value to CF7 (in this case)
2) or, how to copy the value from the dropdown fields to this extra field; perhaps you share an example of a code snippet? (I’m not a skilled coder).Thanks very much in advance.
BR, Lars
- The topic ‘Pass dropdown fields value’ is closed to new replies.