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 365 | Integration, Dataverse...
Unanswered

Can't access elements in html template in form while onsave function is executing

(0) ShareShare
ReportReport
Posted on by 20
Hello,

I have an html template included in a form on Dynamics 365. My JS code has a condition that prevents the form from saving depending on the status of the template.

While the onsave function is executing, I am unable to access any elements in the template. Elements are not being recognized by functions such as document.getElementsByClassname and document.getElementById, or via JQuery selector.
 
Any assistance would be greatly appreciated.
 
Thank you very much,
 
Scott

 
I have the same question (0)
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Partner,
    Based on the documentation:
    --jQuery 2.1.1 was removed in model-driven apps

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 58 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 42

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans