Skip to main content

Notifications

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 Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to map a capture form dropdown to a text field on the contact?

    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.

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: How to map a capture form dropdown to a text field on the contact?

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans