• Resolved Umberto

    (@umberto69)


    Hi,

    I have a form with:
    Scegli: [select* menu-879 "dottoressa 1|[email protected]" "dottoressa 2|[email protected] ]
    In this way, whether you select “dottoressa 1” or “dottoressa 2”, the emails end up on [email protected].
    However, in the template that arrives, there is no way to understand which of the two has been selected. How can I set the template so that the name is displayed: “dottoressa 1” or “dottoressa 2”?

    Regards
    Umberto

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can try adjusting both the form setup and the email template configuration.

    Your select field is currently configured to combine the label and email into one option. To keep the label visible in the email, adjust it as follows:

    Scegli: [select* menu-879 "dottoressa 1" "dottoressa 2"]

    This way, the select options only contain the visible labels without the email address.

    In the “Mail” tab of Contact Form 7, use the tag for the select field in the email body to display the selected value. For example Template for Email Body:

    Selected Doctor: [menu-879]

    This will output the selected option in the email, so if the user selects “dottoressa 1,” the email will show:

    Selected Doctor: dottoressa 1
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter Umberto

    (@umberto69)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.