cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
biancadevera
Helper III
Helper III

Uncheck other checkboxes

My checkboxes are in a gallery. When I select No device yet, it should uncheck other checkboxes. Can this be done in gallery?

 

SP list column (Choices):

  • Microsoft
  • Dell
  • Apple
  • HP
  • Acer
  • No device yet
8 REPLIES 8
biancadevera
Helper III
Helper III

CNT
Super User
Super User

@biancadevera Can you share some screen shots of u'r gallery and also the formula in the Items property of the gallery and the formula in the default property of the check boxes?

biancadevera
Helper III
Helper III

Hi @CNT  apologies for the delayed response. Here's how it looks like:

 

biancadevera_0-1639078133616.png

 

Here's how it should work:

  • When No device yet is selected, other checkboxes should be unchecked.
  • When a checkbox is selected, data card below (text field) should be enabled (DisplayMode Edit). Others should be disabled.

@biancadevera Can only ONE check box be selected at any given time?

biancadevera
Helper III
Helper III

@CNT  Can check multiple checkboxes (1-5) but for No device yet should just be it.

biancadevera
Helper III
Helper III

Hello @CNT do you have any input for this? Please help.

Hi @biancadevera ,

Firstly I don't think this function had your requirements in mind, however I have done a model with the following - Gallery Items

Table(
    {PC: "Microsoft"},
    {PC: "Dell"},
    {PC: "Apple"},
    {PC: "HP"},
    {PC: "Acer"},
    {PC: "No Device Yet"}
)

and some check boxes in it with Text

ThisItem.PC

OnCheck

If(
    GalleryName.Selected.PC = "No Device Yet",
    UpdateContext({varResetPC: false});
    UpdateContext({varResetPC: true})
)

Reset

varResetPC

Default

ThisItem.PC = "No Device Yet" && varResetPC

Looks like this

ResetMC.gif

 

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.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @biancadevera ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

Visit my blog Practical Power Apps

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,951)