Hello,
I have created an app where the user steps through several canvases and selects from a set of checkboxes. On this particular canvas, if someone selects CBSSC Staff, I need the app to automatically select CBS GAL as well. Unchecking CBSSC Staff would also uncheck CBS GAL. It should not work in the other direction, however...if someone selects CBS GAL, that checkbox would be the only one that is supposed to be checked.
Basically, all CBSSC Staff includes CBS GAL, but not all CBS GAL includes CBSSC Staff.
Is there a way to make a checkbox simultaneously check another box? I've tried various "OnCheck" things but nothing is actually making CBS GAL check when I check CBSSC Staff.
Daniel
Solved! Go to Solution.
Hello,
For the scenario that you have a Checkbox outside of a Gallery lets call it "Select All", and you want to use it to select all items from the Gallery that has a Checkbox placed in called "Checkbox1" ( *and add them to a colection called "SelectItems") :
For the Gallery in my case i have only 2 items Name and File:
-Name.Text=Label for Name in Gallery
-DisplayFileName.Text= Label for File in Gallery
Set up as it follows:
1.SelectAll Checkbox outside Gallery:
OnCheck: ForAll(Gallery.AllItems, Collect(SelectItems, {Name: Name.Text, File: DisplayFileName.Text}))
OnUncheck: Clear(SelectItems)
2.Checkbox1 placed in Gallery:
OnCheck: Collect(SelectItems, {Name: Label2.Text, File: DisplayFileName.Text})
OnUncheck: Clear(SelectItems)
Default: SelectAll.Value
To test that it collects all selected checkboxes, I created a Blank Vertical Gallery and set its Items property to : SelectItems, and add 2 labels for Name and File, and set up for each on the Text property: ThisItem.File for the File label, and ThisItem.Name for the Name label.
Hope it helps! 🙂
Hey mate, I have the same situation. Did you manage to fix this? if so what did you do?
thanks in advance!
User | Count |
---|---|
124 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
214 | |
181 | |
140 | |
97 | |
83 |