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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer Insights - Journeys forum

Form capturing - radio buttons

(0) ShareShare
ReportReport
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?

I have the same question (0)
  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    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

News and Announcements

Season of Giving Solutions is Here!

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 > Customer Insights - Journeys

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans