Piped Values Seems to not work
-
Thanks for an awesome plugin!
I’ve been building a contact form that sends the query to a specific department contact email based on the region that the user has selected.
1. They select their province or country;
2. Then it loads a select box with a bunch of values that each have an associated email address (seperated by a pipe character) as the recipient. Please see below link on for more detail on this (if you are not aware already)
https://contactform7.com/selectable-recipient-with-pipes/
Everything seems to be in order, and the form works on the front end, (and says sent successfully) but the selected recipient seems to not be working?
Thank you!
- This topic was modified 7 years, 4 months ago by Darryl.R.
-
pipes are working. Can you give an example that proofs it’s not working?
Hi Jules
I’m not saying anything is broken, but perhaps I’m missing something? Please check the below details:
The proof is that the recipient [your-recipient] is not getting the emails, but the regular recipients which are ([email protected] & [email protected]) are definitely getting the mail.
====================================================================================Form: </form>
<p>Your Name (required)<br /> [text* your-name] </p> <p>Your Email (required)<br /> [email* your-email] </p> <p><b>Your Region (required)</b><br /> [select* province include_blank "Gauteng (South Africa)" "KwaZulu-Natal (South Africa)" "Limpopo (South Africa)" "Mpumalanga (South Africa)" "North West (South Africa)" "The Eastern Cape (South Africa)" "The Free State (South Africa)" "The Northern Cape (South Africa)" "The Western Cape (South Africa)" "Namibia" "Botswana" "Zimbabwe" "Mozambique" "Swaziland" "Lesotho" "Other"] </p> [group Gauteng] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]" ] </p> [/group] [group KwaZulu-Natal] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Limpopo] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Mpumalanga] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group North-West] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group The-Eastern-Cape] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group The-Free-State] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group The-Northern-Cape] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group The-Western-Cape] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]" ] </p> [/group] [group Namibia] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Botswana] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Zimbabwe] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Mozambique] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Swaziland] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Lesotho] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected], [email protected], [email protected], [email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] [group Other] <p><b>Department (required)</b><br /> [select* your-recipient include_blank "I have a question about an order I've placed|[email protected]" "I have a question about a product|[email protected]" "I can't find the product I'm looking for|[email protected]" "I would like to get a quote on a custom branded product|[email protected]" "I have a query about my account|[email protected], [email protected]" "I need documents relating to my purchase history|[email protected], [email protected]" "I have problems logging into the website|[email protected], [email protected]" "I want to report a website bug|[email protected], [email protected]"] </p> [/group] <p>Please describe your query in detail<br /> [textarea your-message] </p> <p>[submit "Send"]</p>
=================================================================================
MailTo field:
[your-recipient], [email protected], [email protected]
Message Body:
From: [your-name] [your-email] Subject: Ad Hoc Request <b>Province:</b> [_raw_province] <-- If this is not your area of responsibility, please pass on to correct Rep.<br/> <b>Selected Rep:</b> [province] <-- This determines who responds<br/> <b>From:</b><br /> [your-name] : [your-email] from [your-business], [contact] <b>Products of Interest</b><br /> [item-code] <b>Quantity per item</b><br /> [quantity] <b>Brand Name</b><br /> [brand] <b>Notes:</b><br /> [your-message]
==================================================================================
Conditional Fieldsif [province] equals "Namibia" then show [Namibia] if [province] equals "Botswana" then show [Botswana] if [province] equals "Zimbabwe" then show [Zimbabwe] if [province] equals "Mozambique" then show [Mozambique] if [province] equals "Swaziland" then show [Swaziland] if [province] equals "Lesotho" then show [Lesotho] if [province] equals "Other" then show [Other] if [province] equals "The Northern Cape (South Africa)" then show [The-Northern-Cape] if [province] equals "KwaZulu-Natal (South Africa)" then show [KwaZulu-Natal] if [province] equals "Limpopo (South Africa)" then show [Limpopo] if [province] equals "Mpumalanga (South Africa)" then show [Mpumalanga] if [province] equals "North West (South Africa)" then show [North-West] if [province] equals "The Eastern Cape (South Africa)" then show [The-Eastern-Cape] if [province] equals "The Free State (South Africa)" then show [The-Free-State] if [province] equals "Gauteng (South Africa)" then show [Gauteng] if [province] equals "The Western Cape (South Africa)" then show [The-Western-Cape]
you cannot have multiple field values with the same name in in one form. Please rename all your
your-recipient
names toyour-recipient-1
,your-recipient-2
,your-recipient-3
, …Then, in the receipient field put:
[your-recipient-1][your-recipient-2][your-recipient-3], [email protected], [email protected]
or, if you want to be absolutely sure that only the emailaddress in the visible group will be sent to:
[Gauteng][your-recipient-1][/Gauteng][KwaZulu-Natal][your-recipient-2][/KwaZulu-Natal][Limpopo][your-recipient-3][/Limpopo], [email protected], [email protected]
- This reply was modified 7 years, 4 months ago by Jules Colle.
Hi Jules
Thanks for this, that makes sense.
I’ve employed your second option and it works;
Despite getting a “Invalid mailbox syntax is used.” configuration error on the From field.
[Gauteng][your-recipient-1][/Gauteng][KwaZulu-Natal][your-recipient-2][/KwaZulu-Natal][Limpopo][your-recipient-3][/Limpopo][Mpumalanga][your-recipient-4][/Mpumalanga][North-West][your-recipient-5][/North-West][The-Eastern-Cape][your-recipient-6][/The-Eastern-Cape][The-Free-State][your-recipient-7][/The-Free-State][The-Northern-Cape][your-recipient-8][/The-Northern-Cape][The-Western-Cape][your-recipient-9][/The-Western-Cape][Namibia][your-recipient-10][/Namibia][Botswana][your-recipient-11][/Botswana][Zimbabwe][your-recipient-12][/Zimbabwe][Mozambique][your-recipient-13][/Mozambique][Swaziland][your-recipient-14][/Swaziland][Lesotho][your-recipient-15][/Lesotho][Other][your-recipient-16][/Other], [email protected], [email protected]
Any idea why I’m getting the configuration error?
Thanks!
the configuration errors are built-in to CF7 since a couple of months now. I haven’t got to hooking into them with my plugin. For the time being you can just ignore the error, I might look into it later.
Thank you for your support, Jules!
You’re welcome, Darryl! Feel free to leave a review if you have the time. Cheers!
JULES YOU’RE AN ANGEL!
- The topic ‘Piped Values Seems to not work’ is closed to new replies.