Change recipient based on selection in form

Is there a way to send the the form confirmation to different email addresses based on a multi-select field?

Please assist.

Thank you

  • Ash

    Hello Sam

    You can't change the recipients but you can add cc or bcc address if you are familiar with php.

    For example, to add in cc, here is a hook: forminator_custom_form_mail_user_cc_addresses

    You can try like the following:

    add_filter( 'forminator_custom_form_mail_user_cc_addresses', function( $cc_addresses, $custom_form, $data, $entry, $obj ) {
    // add your code here
    }, 99, 5 );

    Here $entry is the variable where you get all the submitted data from the form. $cc_addresses is the array that should contain the email addresses. So, check your desired value and add cc address there.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.