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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Checkbox

(0) ShareShare
ReportReport
Posted on by 8

I have a screen with 3 buttons(previous, draft and next). There is a checkbox on the screen that displays a multiline text input when it is checked. The multiline text input must stay hiding until the checkbox is checked. This purpose is fulfilled up to this point. However, after the checkbox is checked and the text input is made, the text input stay visible when I navigate between screens. In addition, the checkbox stays checked even after saving to draft and wanting to make a new submission. If the checkbox is manually selected, it is unchecked and the text input go hiding. I want the unchecking to be done automatically when the user clicks out of the text input. Any idea.

Categories:
I have the same question (0)
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @kwasi2762 

     

    Are you patching the text input? If you are you can reset the checkbox after you patch.

     

    Another option is to reset the checkbox using the Onvisible property of the screen. 

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @kwasi2762,

    What do you mean by "when the user clicks out of the text input"?

     

    If you want to reset the checkbox after you finish inputing from the text input, please consider the following steps:

    1). Set the OnChange property of the textinput control as below:

    Set(varReset,true)

    2). Set the Default property of the Checkbox as below:

    !varReset
  • kwasi2762 Profile Picture
    8 on at

    Thank you for your suggestion. Unfortunately, that solution did not work. I don't know if it is because the text input is in a gallery

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @kwasi2762 

     

    I think I may have part of a solution for you. If you still need more, I am happy to help, just when you reply comment my name so I don't miss it.

     

    What I have done:

    Checkbox inside of Gallery:

    OnCheck property

     

    Set(toggleckbx, false);
    ClearCollect(isChecked, ThisItem.Title)
    // ThisItem.Title is just an example text field I am displaying in the gallery

     

    OnUncheck property

     

    Clear(isChecked)

     

    Reset property

     

    toggleckbx

     

     

    Text Input control inside of Gallery:

    Visible property

     

    ThisItem.Title in isChecked

     

     

    Rectangle inside of Gallery + Rectangle outside of Gallery:

    Onselect property

     

    Clear(isChecked);
    Set(toggleckbx, true)

     

    Fill property -Transparent

    For the Rectangle inside of the gallery, ensure it is behind the checkbox and text input control.

    For the Rectangle outside of the gallery, ensure it is behind the gallery and width and height is the same as the screen size.

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard