web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Suggested Answer

Checkbox issues

(0) ShareShare
ReportReport
Posted on by 12
Hi all. I am building an app that has a form and a page to view all answers to the form. in my form i have 3 checkboxes. when clicking each box, a text input area appears under the checkbox. in my formula bar, i can see that the entire expression for checked is true, and the text area under it appears, but the checkbox remains unchecked until i 'refresh' the page (go next answer and back).  In my logic, the 'checked' property of the checkbox is set to:
!IsBlank(thisItem.'namecol') (a column in a row, this returns true)
 
why does my checkbox visually appear unchecked even though its 'checked' property is true, and the checkbox seems checked in the "backend"? what can i do to fix it?
 
in the screenshot, the Client checkbox should be checked, and the 'VIsible' property of the text area is set to Chechbox.Checked (which returns true)
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    Your formula checks to see if the column in the backend is blank.  So I don't think it registers until the item is refreshed.  Change your formula to check if the Textbox is blank and I think you'll get what you want.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • CT-07042057-0 Profile Picture
    12 on at
    Hi @Pstork1, unfortunately i tried that and the same issue occurs
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    What is the default property of the checkbox set to?  It should be a similar formula.
    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
  • CT-07042057-0 Profile Picture
    12 on at
    @Pstork1 the checkboxes don't have default properties to set
     
    - CheckboxCanvas2_4:
        Control: CheckBox@0.0.29
        Properties:
          Checked: =!IsBlank(thisItem.'namecol')
          DisplayMode: =If(isEditMode, DisplayMode.Edit, DisplayMode.View)
          Height: =25
          Label: ="Client"
          Width: =250
     
    - Textbox:
        Control: TextInput@0.0.54
        Properties:
          BorderColor: =RGBA(214, 221, 224, 1)
          BorderStyle: =BorderStyle.Solid
          BorderThickness: =0.1
          DisplayMode: =If(isEditMode, DisplayMode.Edit, DisplayMode.View)
          Font: =Font.'Segoe UI'
          TriggerOutput: ='TextInputCanvas.TriggerOutput'.Keypress
          Value: =thisItem.'namecol'
          Visible: =!IsBlank(thisItem.'namecol')
          Width: =338
          X: =7
          Y: =32

     
  • Suggested answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    The classic Check box does have a default property. If you are using the modern checkbox the property has been renamed to Checked. They work the same way in each control.  The formula you input should evaluate to true for checked or false for unchecked. 

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • CT-07042057-0 Profile Picture
    12 on at
    @Pstork1  Its the 'checked' property that I am using. After deploying to my production environment, I can see that playing the app in prod doesn't give the issue. Only in my development environment are the checkboxes not displaying correctly. I guess it's really just a visual bug, the code says they're checked=true! 
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    What are you putting in the Checked property? And does it relate to the actual setting in the Data source or just to things on the screen?  If its just settings on the screen then it probably won't work correctly in the designer until you exit the page and return.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • CT-07042057-0 Profile Picture
    12 on at
    @Pstork1 I have tried both checking the value in the dataverse table (!IsBlank(thisItem.'namecol')) and also checking if a related field on the screen is blank. Both give me the same issue but I've kept checking the table value. The issue appears in both the dev app designer and app player, but not in the prod app player.
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    @CT-07042057-0 Try setting the Checked value of the Checkbox to a variable and then Set that variable in the onChange property of the Text box and in the OnStart for the App.  I think your Checkbox is evaluating before the textbox gets set properly and then isn't re-evaluating. If you set a variable in the ONchange property of the textbox then it will update when the text changes. That update will force the checkbox to re-evaluate the setting.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Are you using ResetForm anywhere?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard