02-08-2023 03:30 AM
The cmpDialogOKCancel component can be used in Powerapps canvas apps and gives the possibility to display a modal dialog including: title, message, "cancel" button and "ok" button.
Through the actions: OnSelectCancel and OnSelectOK present in the component it will be possible to execute actions based on the button selected by the user, directly on the calling screen.
How can i make your component invisible from the start and then when i push a button in the property 'OnSelect' make it visible?
I have tried putting the property Visible to false from the start, but then i can't modify it.
Nevermind, i got it. 😃
You have to use a false/true variable when you want to pop up dialog, then in the On_Select event of the ok / cancel buttons, set the variable back to false to hide the dialog.
I attach the last version there was a problem with the colors buttons.