For simplicity let’s say you have a selection like this:
osteopathy
- doctor John (john@dmail.com)
- doctor Ursula (ursula@dmail.com)
rehabilitation
- doctor Gregor (gregor@dmail.com)
- doctor Ann (ann@dmail.com)
The form looks like this:
[select treatment "osteopathy" "rehabilitation"]
[group osteopathy]
[select osteopathy-doctor "doctor John|john@dmail.com" "doctor Ursula|ursula@dmail.com"]
[/group]
[group rehabilitation]
[select rehabilitation-doctor "doctor Gregor|gregor@dmail.com" "doctor Ann|ann@dmail.com"]
[/group]
conditions look like this:
show [osteopathy] if [treatment] equals "osteopathy"
show [rehabilitation] if [treatment] equals "rehabilitation"
Then, if you want to make sure the right doctors get the email, something like this should work inside the To field (or after Bcc: in the header)
[osteopathy][osteopathy-doctor][/osteopathy][rehabilitation][rehabilitation-doctor][/rehabilitation]
In the email body you could do something similar:
[osteopathy]
You chose Osteopathy and made an appointment with [doctor-osteopathy].
[/osteopathy]
[rehabilitation]
You chose Rehabilitation and made an appointment with [doctor-rehabilitation].
[/rehabilitation]
Read up on some concepts here:
https://contactform7.com/selectable-recipient-with-pipes/
https://conditional-fields-cf7.bdwm.be/docs/faq/can-i-use-conditional-logic-in-the-email-message/
Hi Jules,
works like a charme. I just bought your plugin to support you and your fantastic support!
Cheers
Andreas
Thanks! Really appreciate it 🙂