Momin Iqbal Momin Iqbal - 1 year ago 99
jQuery Question

how to send mail dynamically in business catalyst?

I am working with Adobe business catalyst.
I have created a web form with multiple fields and among them three fields are dynamic from "Web Apps".

There is a field named "Select Location". With every location ,"email address" will be attached with data-value. When user select particular location, a default BC email will be send to the "email address" attached to selected location.

How to perform this task? please help in sorting out this issue.

Answer Source

Try this and let me know

You can create a whole new form, hide it and set that form to send emails on submit, and submit it when the first form is submitted. Then pass the email value as below.

    $(document).ready(function() {
        var dataLoc = $('select.location').attr('data-value-email');
        $('form.hidden').val() = dataLoc;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download