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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Impossible to refresh ...
Power Apps
Unanswered

Impossible to refresh command bar

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

I am trying to make a button visible on the command bar of a form, only after a BPF validation.

I have already programmed the visibility conditions of the button (in Power FX), but the button appears only after manually refreshing the page.

 

I coded a JavaScript file and tried the

 

formContext.ui.refreshRibbon(true);

 

command (also with the false parameter), but it’s not working.

I also tried to set a timeout

 

		setTimeout(() => {
			formContext.ui.refreshRibbon(true);
		}, 5000);

 

but it’s not working neither.

 

Do you have any idea of how I could do this?

Thank you for your answers!

Categories:
  • DynamicsNewb Profile Picture
    2 on at

    I have the exact same problem where i want to show/hide a custom Command Bar Button on a form based on the PowerFx code in the "visible" Attribute of that Button.

     

    This post has been unanswered for >8months already. 
    @Dany2 have you found a solution?

  • Naveen_772 Profile Picture
    208 on at
    Any update?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard