• Hi Michael,

    after reading this topic on your homepage, I tried to implement this with my website:
    https://cfdbplugin.com/?page_id=804

    However I am receiving a Failed to send error, although all fields are being correctly submitted to the database view backend of your plugin’s backend.

    The form’s title is set to Pipes and the corresponding shortcode for select menu is something like this:
    [select* location include_blank "option1|[email protected]" "option2|[email protected]" "option3|[email protected]"]

    I inserted [location_email] in To field and [location] in subject as well as message field.

    The provided code from above mentioned link was inserted in child theme’s functions.php file.

    This should actually work, should it not?

    Unfortunately there are no php errors thrown into my server’s error.log for this occurance.

    Later I also found this instructional page in relattion to above action:
    https://cfdbplugin.com/?page_id=747
    Do I have to change something in the code? It is confusing that there are two instructional pages with info on this matter…

    Thanks for looking into this!

    https://www.ads-software.com/plugins/contact-form-7-to-database-extension/

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

    (@msimpson)

    I just tested my own example of this and it still works.

    But what is tripping you up is when looking at the email message coming from CF7, that is independent of the code that you added. The code that you put in only applies to what CFDB captures, not what CF7 emails.

    In your email “To” field you would put [location] and CF7 gives you the email value that is selected. [location_email] is not available in the email. You are in CF7-land here, not CFDB-land.

    After that email is sent, then the code you put in (from my example) is run. CFDB gets a copy of the data from CF7 and you are in CFDB-land. In its copy, CFDB creates a new field [location_email] having the value that [location] has, then it re-assigns [location] to have the description of the location.

    I see how that is confusing. I hope this explanation clears it up.

    Thread Starter Saskia Teichmann

    (@jyria)

    Oh yes, it totally does clear things up!

    In the instructions it says that we need to put [location_email] into the To field! Ok I will give it another try and see if it then works.

    Thanks mucho for replying to quickly

    Plugin Author Michael Simpson

    (@msimpson)

    I’ll fix the instructions. Thanks for pointing that out.

    Plugin Author Michael Simpson

    (@msimpson)

    I fixed the instructions. I remember now that in earlier versions of CF7 it would see the change we make to the form data in the email, but not so in recent version. But I didn’t fully update the instructions. Now I think I have it correct. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Failed to send error – with pipe character in select menu’ is closed to new replies.