My Marketing department has been using Unbounce for years and are very happy with it.. We are implementing Dynamics Marketing so we are going to use Capture Forms to integrate unbounce. However, we are running into a bit of an issue.. All of our forms use Country as a dropdown, but on our Contact and Lead Country is a text field..
Has anybody worked out a way to map the value of a dropdown on a source form to a text field in the contact/lead when creating a capture form?
Thanks
Josh
Your second idea was far less impactful.. Off the idea threw togaether this little script...
<script>
function addHiddenField(){
form = document.querySelector("form");
plain_country = document.createElement("input");
plain_country.type = "hidden"
plain_country.name = "plain_country";
plain_country.id = "plain_country";
form.appendChild(plain_country);
selectlist = document.getElementById("country");
selectlist.onchange = function() {plain_country.value = selectlist.value;};
}
window.onload = function() {
addHiddenField();
};
</script>
Works great, thanks for the suggestion.
Hi Josh,
1. You can create custom option set type field to represent "Country" instead of the default text "Address 1: Country" field and add it to Contact and Lead, then map the drop down to the custom field.
First we need to create a new form field record for the custom option set field:
Map the drop down to the form field record.
2. Alternatively, adding an extra hidden "text" Country input field on your form(<input style="display:none">), when user changes the selected option, populate the hidden field with text of the option with javascript.
Finally, map the hidden field to the default text Country field.
Regards,
Clofly
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156