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!