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 / Bug with checkbox cont...
Power Apps
Unanswered

Bug with checkbox control for visibility of Datacard

(0) ShareShare
ReportReport
Posted on by 301

I think, I have a problem with Datacard visibility which I have set it when a checkbox is selected.
Because I'm not getting previous record value ,I'm getting blank form but the datacard which was not be visible without my check box checked, but when I view a form where I have selected a checkbox and datacard are visible , those datacard things mycheckbox is still selected.

ViewButton.png
NewItem.png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,384 Most Valuable Professional on at

    @apeawakening ,

    I assume it relates to this post (is this solved ?) You mention Visibility, but you have not supplied the Visible code for the button.

  • Ape Awakening Profile Picture
    301 on at
    visibility of datacard is If(MobileCheck.Value && vartabselect = 1 ,true,false)
  • WarrenBelz Profile Picture
    156,384 Most Valuable Professional on at

    @apeawakening ,

    How and when is vartabselect set and assuming MobileCheck is a check box what is the Default ? Also what is the Items of the Gallery and I assume you changed the Item of the Form to what I put in the previous thread ?

  • Ape Awakening Profile Picture
    301 on at

    OnVisible property of Detail Screen , I have put 

    Set(vartabselect,1); ,also for new item this formula gives false value
    If(MobileCheck.Value && vartabselect = 1 ,true,false) still the datacard is visible.
    The default of Mobilecheck box is 
    Self.Text in Concat(ThisItem.MobileOrSIM,Value&",").
    And yes I have change the item property of Form to what you have suggested.
  • WarrenBelz Profile Picture
    156,384 Most Valuable Professional on at

    @apeawakening ,

    As requested the Items of the Gallery are needed and also is that checkbox inside or outside the gallery. You also have to do a bit of work tracking these values when things do not work as I cannot see your data or app. It appears vartabSelect will be OK as it is set when you enter the screen, but the checkbox depends on the Gallery Items being current (hence why I asked for them)

  • Ape Awakening Profile Picture
    301 on at

    My check box is out of gallery.
    I have provided below the item property of Main gallery 

    galleryitemproperty.png
  • WarrenBelz Profile Picture
    156,384 Most Valuable Professional on at

    @apeawakening ,

    Please post that in Text

  • Ape Awakening Profile Picture
    301 on at
    SortByColumns(
        Filter(
            'Mobile SIM Request',
            (StartsWith(
                EmployeeName.DisplayName,
                Employeenametext_1.Text
            ) || IsBlank(Employeenametext_1.Text)) And (RequestStatus.Value = Requestdropdown_1.Selected.Value || IsBlank(Requestdropdown_1.Selected.Value)),
            'Created By'.Email = Office365Users.UserProfileV2(User().Email).mail || EmployeeName.Email = Office365Users.UserProfileV2(User().Email).mail
        ),
        "Modified",
        SortOrder.Descending
    )
  • WarrenBelz Profile Picture
    156,384 Most Valuable Professional on at

    @apeawakening ,

    I was looking for something that would explain the non-refreshing, but you have a Delegable Filter - I have improved it a bit and mode the syntax consistent, but I do not believe the answer lies here.

    SortByColumns(
     Filter(
     'Mobile SIM Request',
     (
     StartsWith(
     EmployeeName.DisplayName,
     Employeenametext_1.Text
     ) || 
     IsBlank(Employeenametext_1.Text)
     ) &&
     (
     RequestStatus.Value = Requestdropdown_1.Selected.Value || 
     IsBlank(Requestdropdown_1.Selected.Value)
     ) &&
     (
     'Created By'.Email = User().Email || 
     EmployeeName.Email = User().Email
     )
     ),
     "Modified",
     SortOrder.Descending
    )

    Your issue seems to be that you are relying on the refreshing / recalculating of a couple of things - firstly the Default of the checkbox in the gallery

    Self.Text in Concat(
     ThisItem.MobileOrSIM, 
     Value & ","
    )

    so my first question to simplify this is why bother with Concat (although again, this may not be the issue)

    Self.Text in ThisItem.MobileOrSIM

    and further is the Text property also a formula (so is Self.Text a static value or not)

    You then have another formula on the Visible - which can be shortened to

    MobileCheck.Value && vartabselect = 1

    So depending on your response to the Text question, you have two or three chained calculations after the gallery refresh that need to do their job in order. My experience with this structure is that it is often inconsistent.

     

     

  • Ape Awakening Profile Picture
    301 on at

    Now I tried with refresh function on new icon , form is working fine and sometime it doesn't.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard