Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Adding Javascript library to custom button in ribbon

Posted on by 20

Hi

I am trying to run a dialog using a custom button and have done the following:

pastedimage1580745271355v1.png

i then get the below error when i press the button:

Invalid JavaScript Action Library: /_static/_forms/form.js is not a web resource and is not supported.

I have tried adding that library to a web resource but the resource will not be among the other ones i have on the list

Please let me know where i am missing it, none of the searches ive done have yielded a work around

Thanks.

  • Tinashe Marc Profile Picture
    Tinashe Marc 20 on at
    RE: Adding Javascript library to custom button in ribbon

    Thanks Radu, it worked.

  • Verified answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Adding Javascript library to custom button in ribbon

    Hello,

    Looks like you are trying to reuse an out of the box javascript library which is not supported. If you are using the online (cloud) platform, I would suggest looking into folowing supported SDK Method docs.microsoft.com/.../navigateto to open a custom dialog.

    Hope this helps,

    Radu

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