• Resolved kozmonauta

    (@kozmonauta)


    Hello,
    My website has the email address of 3 branches. How do I make in Conditional Fields that when the user selects to send message to company A, B or C, it sends it to email A, B or C?

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @kozmonauta,

    Here is a video link explaining how to use conditional logic for the Advanced Form. Can you watch it and let us know if it helps you?

    Thread Starter kozmonauta

    (@kozmonauta)

    Hi.
    I watched this video and read the documentation before opening this topic. But I didn’t find any explanation on how to do this.

    Thanks.

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @kozmonauta,

    I understand your goal a little better. You can use placeholders in the Advanced Form block when you set an email address by using the field name enclosed in brackets: {field-name}

    Here is an example that should accomplish your goal. First, add a select field for the user to select options A, B, or C. The Select field has settings to add option labels and values. For the first option’s value, add the first email address. The second option’s value should be the second email address. The same is true for the third option value and the third email address. Give the Select field a field name something like email-to.

    Then, add {email-to} as the email to address in the form setting and save the form. When the user selects A, B, or C, the value of the Select field will update to the selected email address, and the placeholder will dynamically adjust the address that receives the email.

    Please let me know if you have more questions about this or if it works for you.

    Thread Starter kozmonauta

    (@kozmonauta)

    Very cool. It worked.
    However, when I receive the message in my email it looks like this:

    —————————————-
    Name
    John Adams

    Email
    [email protected]

    Telephone
    11111111

    Select the company to contact:
    [email protected]

    Message:
    Hello, I would like to get in touch about the budget for December 15th.

    Send by (website)
    —————————————-

    How do I make the option label text appear instead of option text value in my received email?

    So that the email looks like this:

    Select the company to contact:
    Company A

    Rather than:
    Select the company to contact:
    [email protected]

    Thanks.

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @kozmonauta,

    Currently, there isn’t a filter to intercept the fields before the email is sent. There is a feature request that the developers are working on to change this. However, at the moment, there isn’t a way to update the value of the responses in the email.

    Thread Starter kozmonauta

    (@kozmonauta)

    No problem.
    This already solved 99% of the problem.

    Thank you!

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @kozumonauta,

    I found that a filter should be released in the next version of Kadence blocks that will allow us to accomplish this goal. Check back after the next update to see if the kadence_blocks_advanced_form_processed_fields filter was added and for help using it when it becomes available.

    Plugin Support michael-levelup

    (@michaeltarongoy)

    Hi there,

    This topic has been inactive for more than 2 months. I’ll proceed to marking this as resolved.

    If you have further questions or need additional assistance, feel free to start a new topic or refer to our Kadence Blocks documentation here: https://www.kadencewp.com/help-center/knowledge-base/kadence-blocks/

    Thank you for your understanding!
     
    Kind Regards,
    Michael Taro

    Hi guys,

    I just stumbled over this discussion and it helped me resolve my issue as I also needed to be able to select the message recipient in the contact form. So, thank you!

    Unfortunately I’ve also noticed another problem — how can I set a default email address if the user hasn’t specified a recipient? I’ve tried to set a Default Value in the Select field, but unfortunately that doesn’t seem to work, i.e. the form submissions aren’t sent at all.

    https://www.dropbox.com/scl/fi/gdf2e29rb5uy09amjvnow/Screenshot-2024-07-12-at-20.35.06.png?rlkey=slay80rq8vfyjv2owecj4pfdr&dl=0

    Thanks for your help in advance!

    Cheers
    Clemens

    • This reply was modified 8 months, 1 week ago by kognito.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Advanced Form. Send message to a different email based on the chosen field.’ is closed to new replies.