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)

Can't open JQuery UI dialog after save

(0) ShareShare
ReportReport
Posted on by 579

I'm trying to open a JQuery UI dialog when a form saves. But I'm getting an "Object doesn't support property or method 'dialog'" if the form has been saved previously. Opening the form on the first save works fine. I put all the necessary JQuery code in one big file to avoid an issue with loading order. Anyone know what might be causing the error?

*This post is locked for comments

I have the same question (0)
  • Muhammad Adeel Javaid Profile Picture
    5,580 on at

    This might be of help for you:

    www.sikosoft.com/.../jquery_object_doesnt_support_this_property_or_method_142_-_solution

  • Verified answer
    DDWilli Profile Picture
    579 on at

    Thanks for the attempt, but that didn't fix the issue. I think I figured it out though. For anyone who might have the same problem, it was caused by Dynamics loading its own JQuery 1.7.2 file when the form is in update mode, which removed my JQuery UI function. So, instead of adding the JQuery WebResources in the form builder, I conditionally load them in my JavaScript. When the form is in "create" mode I load the JQuery + JQuery UI file and when the form is in "update" mode I just load JQuery UI after Dynamics' JQuery 1.7.2 is done loading.

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