Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Hi all , I'm trying to disable a button once I get the Boolean value response as true in the Java script.

Posted on by 40

ribbon button

*This post is locked for comments

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Hi all , I'm trying to disable a button once I get the Boolean value response as true in the Java script.

    1. Try to build fetch xml from advance find

    2. Using CRM rest builder solution you would be able to create REST call.

    carldesouza.com/.../

    www.mscrm.com/.../crm-rest-builder-for-dynamics-crm-d365.html

    3. Inside JS function check boolean value

  • Priya Reddy Profile Picture
    Priya Reddy 40 on at
    RE: Hi all , I'm trying to disable a button once I get the Boolean value response as true in the Java script.

    Hi ,pravin,

    Thankyou ,actually I'm looking for code suggestion to retrieve the Boolean value if it is in another lookup value.

    For example - Session is the entity , the lookup field - Account  under the account there is lookup field of flag which I want to retrieve the data in Java script. Thanks please suggest me

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Hi all , I'm trying to disable a button once I get the Boolean value response as true in the Java script.

    First of all create synchronous JS to get boolean value from lookup.

    Using enable rule you would be able to hide button on form.

    Please refer below url for reference:

    community.dynamics.com/.../how-to-disable-a-crm-2016-ribbon-button-based-on-form-name

    Let me know if you need more info.

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