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 :
Microsoft Dynamics CRM (Archived)

Getting field object using javascript

(0) ShareShare
ReportReport
Posted on by

Hi, im trying to create multiselect option set in dynamics crm 2016 following this link:

burnignorance.com/.../add-a-multiselect-optionset-to-ms-dynamics

From this below line, what value should be returned ?

OSet= window.parent.document.all.lnkt_impactlevel; //get OptionSet field object
OSetValue= window.parent.document.all.lnkt_impactlevelvalue;     //get MultiLineTextBox field object

In my case, it's returning [object HTMLDivElement], is it correct ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hi Fikri

    Multiple select optionsets were introduced with CRM 9.0 (2016 is 8.X). See following article: docs.microsoft.com/.../multi-select-picklist

    From the code you pasted above, you are calling the DOM, which is not supported by MS Dynamics CRM and it could be very likely why this is failing.  (msdn.microsoft.com/.../gg328350.aspx)

    I would suggest considering a different (supported) approach:

    - if you are using CRM Online - upgrade to the latest build

    - If you are CRM OnPremise - where 9.0 is not available (probably the next major build will be) - you could try to create a custom IFrame, add it to the form and have some custom logic there that mimics a multi select OptionSet that you could map in the background to  a CRM N:N / N:1 relationship.

    Hope this helps,

    Radu

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans