contact form 7 assign a value to hidden fields after submitting
-
contact form 7 assign a value to hidden fields after submitting using a radio button and send the email to different customers
I’d like to send a email to different customers depending on the selected radio button and also sent addtional information from hidden fields.
FORM:
I take a radio button to choose between different options.
[radio radio-button use_label_element “Option A” “Option_B” “Option_C” ]Besid, I have declaired two hidden field
[hidden Product_ID]
[hidden Procuct_cost]Implement in functions.php:
Depending on the setected radio button, I’d like to send the following information to different customers:If the customer selects “Option_A”then
recipient = “[email protected]
Product_ID = “1_A”
Procuct_cost = “150$”If the customer selects “Option_B”then
recipient = “[email protected]
Product_ID = “1_B”
Procuct_cost = “199$”If the customer selects “Option_C”then
recipient = “[email protected]
Product_ID = “1_C”
Procuct_cost = “42$”Unfortunately I do not know how to realize the above described problem.
I am a very beginner and don’t have so much experience.
Please could you help to solve the problem and give me some code snippets so that I can implement it directly?The page I need help with: [log in to see the link]
- The topic ‘contact form 7 assign a value to hidden fields after submitting’ is closed to new replies.