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 365 | Integration, Dataverse...
Unanswered

Keep button disabled until it's action (Called on click of button) return response

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have a requirement, in which I have to add one Custom button and need to call Custom action on click of that button.

In order to prevent user to hit the button multiple time, We want to keep it disabled until Action complete its execution in the background and return the response.

Once response is received I need to enable the button back.

Please let me know the best way to achieve this requirement.

I have the same question (0)
  • Nya Profile Picture
    29,060 on at

    Hi,

    I’d like to recommend you to add the button with an HTML Web Resource.

    pastedimage1618291897458v1.png

    Then you can add some JavaScript into it to control the button to be abled or disabled based on your actual situation.

    Insert the web resource into the form as your wish.

    pastedimage1618291906744v2.pngpastedimage1618291910885v3.png

    Here is the code snippet.

     

    
    
    
        
        
    
    
    
        
    
    
    

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

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 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans