• Resolved Steinfranken

    (@steinfranken)


    Hi,
    I have two questions. I made a contactform with 2 selectors. First you have to choose a therapie, then it will show the correct doctor. Perfect, works fine!

    Now my 2 problems:
    1.) In the eMail that is sended by contactform it does not show the doctor, that is selected, it only works if there is only one therapie and one doctor. For sure I have to specify with more steps, but I don’t know where and how.
    2.) Is it possible to assign the correct result to the correct doctor? Will say doctor 1 = doctor1@test.com doctor 2 = doctor2@test.com … they only will get the requests exactly for them.

    Thx for help

    Andreas

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    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/

    Thread Starter Steinfranken

    (@steinfranken)

    Hi Jules,

    works like a charme. I just bought your plugin to support you and your fantastic support!

    Cheers

    Andreas

    Plugin Author Jules Colle

    (@jules-colle)

    Thanks! Really appreciate it 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘eMail Problem’ is closed to new replies.