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 Platform Community / Forums / Power Apps / DatacardValue with Gal...
Power Apps
Answered

DatacardValue with Gallery checkboxes

(0) ShareShare
ReportReport
Posted on by 13

Jason13_0-1670484159624.png

Hi there, I wanna know is there any way to show/hide the textbox when the checkbox is checked/unchecked?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,049 Most Valuable Professional on at

    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

     

  • Jason13 Profile Picture
    13 on at

    Jason13_0-1670485182388.png

    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

  • WarrenBelz Profile Picture
    156,049 Most Valuable Professional on at

    @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

     

    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

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @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!

  • Jason13 Profile Picture
    13 on at

    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.

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 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard