web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Dataverse Flyout Button not working when click right after the buttons appear

(0) ShareShare
ReportReport
Posted on by
Hi Experts,
 
I have a Flyout button in one of my custom tables.
It has 2 options, and they only throw an alert message when clicked.
 
The weird thing is that the '1st Sem' button doesn’t work if I click it immediately after clicking 'Calculate'. But if I wait for a second, it works.
 
Has anyone experienced the same? Or an idea why this is the case?
 
I have the same question (0)
  • Suggested answer
    MVP-Daniyal Khaleel Profile Picture
    564 on at
    Dataverse Flyout Button not working when click right after the buttons appear
    yes this is a common behavior seen in model-driven apps (Dynamics 365 / Power Apps) when using Flyout (Command Bar) buttons with custom JavaScript actions.
    Ribbon/Flyout refresh timing
    After a Flyout button action runs (like “Calculate”), the command bar may re-render or refresh to update the state (enabled/disabled rules, visibility, etc.).
    During this refresh, a brief delay (~500–1000 ms) occurs where other buttons temporarily lose their click event binding — so clicking too soon appears to do nothing.
    Async JavaScript (Promise or setTimeout)
    If your “Calculate” function executes asynchronously (for example, saves a record or calls Xrm.WebApi.updateRecord), the ribbon may refresh automatically after the save completes.
    This again resets your Flyout component temporarily.
    Button Command Dependencies
    If both buttons share the same Command Bar group or flyout parent and the command definitions include any EnableRule or DisplayRule tied to form attributes, Dynamics re-evaluates them on any form data change → causing UI refresh lag.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 182

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 129 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans