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.
If I understand correctly, you'd like the webform data to be sent to an email address that is taken from a data attribute on a select option within the form being filled.
This article should help. https://docs.worldsecuresystems.com/user-manual/CRM/web-forms/setting-up-form-to-email-using-web-forms
Essentially you want to append &[email protected] to the form action to achieve your goal.
You could do that with javascript or jquery front end.
jQuery example below
var frmAction = $('form[name="catwebformform22094"]').attr('action')
$('form :input').change(function () {
$(this).closest('form').data('changed', true);
var selectedEmail = $( "#myselect option:selected" ).attr(' data-email');
$('form[name="catwebformform22094"]').attr('action', frmAction + "&Email=" + selectedEmail)
})