cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndyPBC
Helper I
Helper I

Set a button always disabled when App starting

Hi,

i have PowerApps Form based on a sharepoint list and want that a button is always disabled when the app is started. Only when a user make changes in a date field, this button must be enabled (for a save (update) action)

I tried this on the OnStart function on the app:

 

onstart = button1.displaymode.disabled  ->> the app ignore this

 

also tried a varible for the displaymode button: onstart 0 Set(variablename;disabled)  -> not working

 

I only want that this button is not clickable when the app started. 

Really looking forward for help.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@AndyPBC 

OnStart Set(varbutton,true)

Button Display mode: If(varbutton, Disabled, Edit)

To enable the button, Set(varbutton, false) somewhere else in the app and the button will stay enabled until the app is restarted. 

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@AndyPBC 

OnStart Set(varbutton,true)

Button Display mode: If(varbutton, Disabled, Edit)

To enable the button, Set(varbutton, false) somewhere else in the app and the button will stay enabled until the app is restarted. 

View solution in original post

AndyPBC
Helper I
Helper I

That works excellent. Thank you so much.

 

Greetings

Andy

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,088)