Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Why a javascript does not work on the onload event for a user but for others it does.

Posted on by Microsoft Employee

A JavaScript code works when the administrator opens it, but when another user opens with another role, it does not execute, nor does it even give an error.

I searched but did not find any entries in any forum, this role of this user, had no privileges on the processes, then put user permission to read at the user level, and voila, the JS already works.

I share this in case anyone ever needs it.

*This post is locked for comments

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Why a javascript does not work on the onload event for a user but for others it does.

    Are you sure both are using same forms ?? it may be there are multiple forms and form is opended based on security roles??, Sharing code will also help.

    Thanks

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Why a javascript does not work on the onload event for a user but for others it does.

    Hi,

     I'm sure there should be some explanation - if you provided more details, we should probably be able to either figure it out, or, at least, to indirectly confirm a bug(since you'd need to go through Microsoft to actually acknowledge a bug). But, to start with, we'd need to see the javascript code..

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans