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?
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156