Hi Everyone!
I have a gallery with checkboxes.
The user selects the checkbox and then there is a button outside the screen to patch it through to my sharepoint list.
I want to block off the row in the gallery with a rectangle so the user cannot action the item again.
I tried using the group function but it blocks off all the items in the galler.y
Thanks
D
Solved! Go to Solution.
Hi@milky_bar_may,
Based on the issue you mentioned, do you want to disable the checkbox once it is checked.
I assume that the CheckBox has the corresponding values to a column in your SP list. And you want to avoid repeating patch CheckBox value. On this premise, I have a test on my side, please take a try as below:
If(Gallery1.DisplayMode=DisplayMode.Edit,false,true)
If(Checkbox2.Value=true,DisplayMode.Disabled,DisplayMode.Edit)
As an alternative solution, you can also set the rectangle visible property as below:
If(Checkbox2.Value=true,true,false)
Best Regards,
Qi Qiao
Use your rectangle idea but make is visible property Checkbox1.Value
At the beginning of the UnCheck of the CheckBox:
Hi@milky_bar_may,
Based on the issue you mentioned, do you want to disable the checkbox once it is checked.
I assume that the CheckBox has the corresponding values to a column in your SP list. And you want to avoid repeating patch CheckBox value. On this premise, I have a test on my side, please take a try as below:
If(Gallery1.DisplayMode=DisplayMode.Edit,false,true)
If(Checkbox2.Value=true,DisplayMode.Disabled,DisplayMode.Edit)
As an alternative solution, you can also set the rectangle visible property as below:
If(Checkbox2.Value=true,true,false)
Best Regards,
Qi Qiao
The If() is unnecessary since Checkbox1.Value reduces to either true or false and that answers your question as you posed it.
@milky_bar_may You say there is a button to patch() the collection to the SharePoint list. This presumed that you first do an action on the datasource and after the update you don't want the user to be able to make another patch(0 on this record, is this right.
So my first question should be: what do you change in your Sharepoint list? Then my advise would be to refresh your gallery/datasource and make a condition on ThisItem.ChangedField which is on the Checkbox.Visible. No Checkbox for the record, means the user isn't able to click it, right.
Hope this helps.
Sorry for the delayed response everyone. I appreciate all your comments.
Thanks @v-qiaqi-msft , your solution worked out for me.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
190 | |
70 | |
50 | |
37 | |
26 |
User | Count |
---|---|
243 | |
113 | |
91 | |
91 | |
68 |