Skip to main content

Notifications

Customer Insights - Journeys forum

Form capturing - radio buttons

Posted on by 125

Hi,

I have website with simple form which I would like to capture in Dynamics 365.

This form contains simple fields like First Name, Last Name, Email Address and also radio buttons list with 5 options:

Product 1

Product 2

Product 3

Product 4

Product 5

Customers can choose on options from the above list. I would like to notice it in Dynamics 365 for example to option set list, but I cannot achieve it. When I map more than one form field to the same field, Dynamics 365 show an error that more than one field is mapped to option set field.

How Can I workaround this scenario?

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Form capturing - radio buttons

    Hi Dominik,

    From my test, it seems that form capture script will count total input fields on website in scanning process, 

    then we are required to map each input field to one marketing field.

    In my opnion, althought option set can be rendered as multiple radio button(and it is rendered to multiple radio type input fields on embedded form), which means the radio input fields are rendered result,

    but actually an option set field is one field instead of multiple fields, and CRM currently may not provide such feature to detect them as a option set field smartly.

    So the workaround could be you still create a select option list and give them corresponding value in CRM, then still map this element in form capture process, the only different thing is that we add a script to change its selected value when any of radio box checked, and hide it on our page.

     1a.jpg

    1b.jpg

    script could be below:

     

      var radios = document.getElementsByName('product');

     

      for (radio in radios) {

        radios[radio].onclick = function() {

          setOption(this.value);

        }

      }

     

      function setOption(val) {

        var list = document.getElementById("HiddenList");

        list.value = val;

      }

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans