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)

System User Form onload Error "Object doesn't support property or method 'getOptions'"

(0) ShareShare
ReportReport
Posted on by 70

Dear all,

We have CRM 2015 onpremise and we have noticed a strange behaviour when we open the System User Form using Internet Explorer 11.
Each time we open the form, we get a popup error with the message "Object doesn't support property or method 'getOptions'".

When we use Chrome, Mozilla or Edge, we don't receive any error.

Any idea what it could be ?

Best regards,
Maria

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Maria,

    Looking at the error you should get this error every browser if you enable the debugger for all browser . This is not browser issue  , its a script error and getting when  you retrieving options value  from the control.

    Make sure you should do null check for control and then execute getOptions , please refer below code.

               var optionSet = Xrm.Page.ui.controls.get("statuscode");

               if (optionSet != null) {

                   var optionSetValues = optionSet.getAttribute().getOptions();

               }

  • Maria Banioti Profile Picture
    70 on at

    Hello Goutam,

    Thank you very much for the reply but I haven't any custom code (e.g. Jscript functions) in this entity.

    System-User-Form-Properties.png

    Thanks again,

    Maria

  • gdas Profile Picture
    50,091 Moderator on at

    Ok , can you please share some screenshot of the error please with console of ie F12 debugger window.

  • Maria Banioti Profile Picture
    70 on at

    On the onload form of system user, I receive the bellow error:

    IE-F12-debugger-window.PNG

    After that in console of ie F12 debugger window i receive the bellow results. 

    IE-F12-debugger-window.PNG

    DOM7011: The code on this page disabled back and forward caching. For more information, see: go.microsoft.com/fwlink

    main.aspx
    HTML1300: Navigation occurred.
    main.aspx
    HTML1514: Extra "<body>" tag found. Only one "<body>" tag should exist per document.
    main.aspx (492,1)

    Thank you in advance! 

    Maria

  • Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    Do you have any customization for this screen? Iframe or something?

  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    Do you have multiple forms? Are you checking at the right form customization?

    Do you have any web resources embedded like HTML page?

    You can find all the scripts in browser developer toolbar under source - contentframe0

    Verify the files & put a breakpoint to debug after refresh.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Maria,

    The error you are getting appears to be occurring from your custom JavaScript. You can follow the below blog to debug the javascript using developer tools.

    blogs.msdn.microsoft.com/.../debugging-custom-javascript-code-in-crm-using-browser-developer-tools

    Alternatively, you can check what all JavaScript you have on your form and then disable it to find the exact code. You can refer below blogon js basics-

    community.dynamics.com/.../javascript-basics

    Hope this helps.

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