Announcements
Hi there, I wanna know is there any way to show/hide the textbox when the checkbox is checked/unchecked?
Hi @Jason13 ,
Yes easily - make the Visible of the Text Box (with your control name)
YourCheckBoxName.Value
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.
MVP (Business Applications) Visit my blog Practical Power Apps
But I'm using gallery for the checkbox section, so there is only 1 checkbox name for each of the selection. Is there another way to solve this problem
@Jason13 ,
I don't quite follow you model here based on your image, but you may be able to specify the selected item
GalleryName.Selected.CheckBoxName.Value
@WarrenBelzyour solution is correct if he is referencing the checkbox.value in the gallery.In this case the scope of Checkbox.value is limited to that item.However I think @Jason13 wants to show/hide fields outside of the gallery.In this case this can be solved by using a collect function and a removeIf function in the oncheck or uncheck property.
OnCheck: Collect(colVisibility, ThisItem.YourTextField) OnUnCheck RemoveIf(colVisibility, Value = ThisItem.YourTextField)
The visibility of your text fields outside the gallery can be done by (Phone Ext as example):
"Phone Ext" in colVisibility
This will show the Phone Ext if it is checked.I hope this helps!
Thank you very much ~! @WarrenBelz and @LaurensM , the problem has been solved🤗
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 352 Most Valuable Professional
11manish 192
Valantis 128