cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pmurnion
New Member

checkbox default value

I have a powerapps form connected to an excel data source.  One of the columns/fields is true/false. When I build the wizard/default app the edit screen has all edit/text boxes by default.  I can change the control for the t/f field to a checkbox and it works (kindof). But the checkbox acts strangely. There is no way to set the default of the checkbox to the underlying field value, unlike all the other text controls, which use Parent.Default .  The default property of the checkbox only allows the literal values True or False. So say the value for the T/F field in a particular record is True. I run the app. I want to change that particular value to False. When I go to the Edit screen, the (manually set) default for the checkbox is False. So I have to check it (make it True), save the change, leave edit screen, go back in and check it off to make it False.  All very strange and completely like any other UI.

I am using powerapps to teach students forms but this is just confusing them

 

Phelim 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @pmurnion ,

 

How do you set Default property of checkbox?

Please set the Default property as below:

 

If(ThisItem.'Column Name'="True",true,false) //change 'Column Name' to real column name.

 

Test Result:

GIF_44.gif

Sik

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @pmurnion ,

Here is a good post on the subject - this may be a solution for you.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

v-siky-msft
Community Support
Community Support

Hi @pmurnion ,

 

How do you set Default property of checkbox?

Please set the Default property as below:

 

If(ThisItem.'Column Name'="True",true,false) //change 'Column Name' to real column name.

 

Test Result:

GIF_44.gif

Sik

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,669)