cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver II
Resolver II

Grey textfield when app start up

Hi,

Is it possible to make both text fields grey when the app starts and nothing is selected in the radio buttons?

Capture.JPG 

1 ACCEPTED SOLUTION

Accepted Solutions
Resolver II
Resolver II

I solved it using;

If(IsBlank(Radio1.Selected.Value),DisplayMode.Disabled, If(Radio1.Selected.Value="Office", DisplayMode.Disabled,DisplayMode.Edit))

View solution in original post

3 REPLIES 3
Super User II
Super User II

Hi @JHS2020 

You could use the DisplayMode property of the card.  Unlock the card and set the DisplayMode to something like

 

If(somecondition,View,Edit)

You could use the Set(var,true) function to create a variable in the OnStart property of the app and use that with IsBlank(Radio.Selected.Value) 

If(var && IsBlank(Radio1.Selected.Value),View,Edit)

 

Does not really help?

Resolver II
Resolver II

I solved it using;

If(IsBlank(Radio1.Selected.Value),DisplayMode.Disabled, If(Radio1.Selected.Value="Office", DisplayMode.Disabled,DisplayMode.Edit))

View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (31,866)