Thank you Corey-san for advising me to post the solution.
This topic is for people who want to use Pipes with Contact Form 7 Multi-Step Forms.
The solution is adding a hidden tag and the Javascript codes.
For example…
Dropdown menu using Pipes:
[select* item id:selectBox class:required class:selectBox first_as_label "Choose item" "A|[email protected]" "B|[email protected]" "C" "D" "E"]
Add a hidden tag and some JavaScript:
[select* item id:selectBox class:required class:selectBox first_as_label "Choose item" "A|[email protected]" "B|[email protected]" "C" "D" "E"]
[hidden your-item ""]
<script>
document.addEventListener('DOMContentLoaded', function() {
var selectElement = document.querySelector('[name=item]');
var hiddenInput = document.querySelector('[name=your-item]');
selectElement.addEventListener('change', function() {
var value = selectElement.value;
hiddenInput.value = value;
});
});
</script>
Pipes emails are stored in [item], the item names are stored in [your-item].
Set the [item] tag in the recipients section (e.g., To [item]).
The articles that I got a hint(all written in Japanese):
https://webabc.hatenablog.jp/entry/2023/01/10/ContactForm7-CoditionalFields-MultiStepForms-CombinedUse
https://mono96.jp/wordpress/know-how-wordpress/47400/
This solution works only in Free Version.
For the Pro ver, please contact to Technical Support.
I’ve already shared the other solution.
Feel free to ask me if you have any questions.
N’hésitez pas à me demander si vous avez des questions. Merci.
I have pro version.
How work with pipes in the formula?
Ex:
Categoria:
[select menu-categoria “PREBENJAMíN A S7|0” “PREBENJAMíN A S8|35” “BENJAMíN A S9|35”]
Total:
[calculator total calculationcf7_Precision:0 “100 + menu-categoria”]</p>
I need value of menú-categoria. menu-categoria dont work. {{menú-categoria}} dont work too
]]>Please tell me how to calculate using pipe values/How to insert a pipe value to the formula?
]]>For example:
<label><input type=”radio” name=”radio-1″ value=”555″ checked=”checked”>FOO</label>
<label><input type=”radio” name=”radio-1″ value=”777″>BAR</label>
I need to do this so I can have a numeric “value” but a text “label”.
I have tried using Pipes, however pipes don’t display the numeric value in the source code – and I need to get that with javascript.
.main-navigation .primary-menu-container > ul > li.menu-item > a
.header-navigation ul li.menu-item > a
However, when I try to modify that to add a pipe after each menu item, I can’t get any of the changes to show e.g.
.main-navigation .primary-menu-container > ul > li.menu-item:after a {content:"|"; color: #515151;}
Any suggestions?
]]>[radio Altersgruppe use_label_element default:1 "{unter 18|1}" "{18-30|2}"]
-> does not work
[radio Altersgruppe use_label_element default:1 "{unter 18}|1" "{18-30}|2"]
-> does not work
]]>Is it possible to add a secondary recipient to send a copy of the e-mail?
This is what I have atm:
[select* recipient “TEST|[email protected],[email protected]”
I tried using coma and semicolon, but none of them seems to work, it just sends the mail to the first recipient Is there something I am missing? Thanks
]]>_raw_{field name}
in Flamingo when using pipes feature of Contact Form 7 so it will show in exported CSV?
At the moment, I can only capture {field name}
, not _raw_{field name}
.
Pipes feature I refer to: https://contactform7.com/selectable-recipient-with-pipes/
]]>But i have a problem. I need to calculate the option. the value passed however looks like “your-option | file-path”
I have the price i want to calculate in there. i.e “your-option 10.00:- | file-path”
Does anyone know how I could pass only the price/number to the calculator? Attach an extra hidden value? Or transform the option value to a number maybe?
Would be grateful for help / Lasse
]]>Is there a way to combine pipes with dynamic select fields?
Both are great options!!!
Thanks a lot in advance!
Best regards, Rene.
]]>