Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

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

Posted on by 10
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

 
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Can't access elements in html template in form while onsave function is executing
    Hi Partner,
    Based on the documentation:
    --jQuery 2.1.1 was removed in model-driven apps

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans