Support » Plugin: Contact Form DB » CF7 Menus with Pipes and repeated emails

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I created my own example to better understand this. I get the same incorrect result as you.

    Here is what happens:

    You select location3 and submit the form.
    CF7 gives us email1@nowhere.com as the value for the field
    The extra code is trying to lookup what location you choose in the form. To do that, it looks at the form tag definition:
    “location1|email1@nowhere.com”
    “location2|email2@nowhere.com”
    “location3|email1@nowhere.com”

    It finds that the first one has email1@nowhere.com and the associated location is location1. But there is no information to tell it that location3 was actually the selection. There is nothing we can do in code to correct it.

    You have to make the emails unique. You might try:
    “location1|email1+location1@nowhere.com”
    “location2|email2+location2@nowhere.com”
    “location3|email1+location3@nowhere.com”

    Usually the email system ignores everything after the “+” but it allows you to make 2 emails look like they are different.

    Thanks for the answer, I’ll try!

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