web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to map a capture form dropdown to a text field on the contact?

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    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:

    pastedimage1605237274126v2.png

    Map the drop down to the form field record.

    pastedimage1605237400396v3.png

    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

  • Community Member Profile Picture
    on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans