Viewing 2 replies - 1 through 2 (of 2 total)
  • Probably easiest to set up 6 different contact forms for each doctor.

    Repetitive, and somewhat inefficient. But much easier than custom coding.

    That way for each tab, you just substitute different shortcodes:

    <?php echo do_shortcode( ‘[contact-form 1 "Contact Smith"]‘ ); ?>
    <?php echo do_shortcode( ‘[contact-form 2 "Contact Kahn"]‘ ); ?>
    <?php echo do_shortcode( ‘[contact-form 3 "Contact Mel"]‘ ); ?>
    <?php echo do_shortcode( ‘[contact-form 4 "Contact Blood"]‘ ); ?>
    <?php echo do_shortcode( ‘[contact-form 5 "Contact Zeus"]‘ ); ?>
    <?php echo do_shortcode( ‘[contact-form 6 "Contact Dr. Waffen"]‘ ); ?>

    Here’s how it’s done.

    1. Create a new dropdown tag called “email_recipients”
    2. For the values of the dropdown use a pipe to separate the NAME from the VALUE. IE- Store a name of the doctor and their email address. “Dr. Smith|[email protected]” You can list multiple doctors on a separate line
    3. In your the section where you edit the form email content, change the “To:” field to your new field: [email_recipients]

    Now when someone chooses a Doctor it will go to the email address you passed in with the “pipe method”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Choosing a recipent based on a custom field (Contact Form 7)’ is closed to new replies.