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)

Add Additional java script library to the Enable Rule in Ribbon Workbench

(0) ShareShare
ReportReport
Posted on by

Hi Folks,

I have to Disable the button on ribbon using custom java script. I have added a java script that is able to execute the method declare in ribbon workbench, but the problem is I have used a method from  "sdk.soap" library in my code.

After debugging my code I found that its not able to call sdk.soap library method. I tried adding the library with the command to which this Enable rule applies but still no able to get around.

I have also tried this Link:-

www.inogic.com/.../how-to-load-a-web-resource-using-java-script

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Yadnyesh Kuvalekar Profile Picture
    4,102 on at

    I believe you are disabling this button on form. Go to form designer > Form properties > Add library. Save and publish changes. Clear browser cache and check.

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    You simply need to add steps before your custom function referencing the library js webresources and set the function to be isNaN

  • Community Member Profile Picture
    on at

    Thanks Scott for the suggested answer and is working fine.

  • Community Member Profile Picture
    on at

    hello,

    I have a button in home ribbon and o use from ribbon workbench.My button do copy field to other field for selected item in view,i have 3 libraries[data1.js,new_json2.js,new_sdk.rest.js] and i use sdk.retrieverecord in "data1.js" and i add libraries[json, sdk] with FunctionName="isNaN", but not this work correct.

    thank you.

  • Suggested answer
    Alejandro Cesetti Profile Picture
    205 on at

    I agree with Marya, adding a step is not working in Dynamics 365 Online. I had to follow inogic solution instead.

    Cheers.

  • Mangesh Mahadadalkar Profile Picture
    5 on at

    Hi

    we have tried this in Dynamic 365 online but its not working.

    Please suggest any alternate way to achieve this.

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