Hi, All. I've tried several posts and videos and I just can't get this to work:
I've created a default SharePoint list form in Power Apps, and changed the multi-select drop-downs to checkboxes within galleries. It all works well, except when I click the New form button in SharePoint, the form doesn't clear the previous checkbox entries.
If possible, I'd like the entire form to reset when the New SharePoint form button is pressed. Right now it does, except for the checkboxes.
Here are my details (collection is colCategoryData):
Anything beyond this that I've found (variables, OnVisible, Reset) doesn't work.
Please and thank you. I'm pulling out what little hair I have left.
@Anonymous
This has been previously discussed in the Idea section. I don't think it has been implemented yet. While you can put a gallery inside a card by cutting and pasting, PowerApps really isn't designed for it.
Thanks for all of your help. Your advice has gotten me closer, but it's still not working as expected.
I just wish it was easier to create something as basic as check boxes in PowerApps. I'm going to have to find a different solution, I guess.
Thanks, again.
@Anonymous
Since I don't use Integrated SharePoint forms, I am not familiar with the specific commands but there must a button that you push to open the form in New mode, It would have NewForm(Form...) as a command. If you find it add
NewForm(Form1);Clear(colCategoryData) Then when you navigate to the form, the Gallery should be reset.
@Anonymous
When you open a Form in New mode, Clear(colCategoryData). If the gallery depends on that collection, it will not retain old information.
@Anonymous
It appears to me that the checkboxes are dependent on colCategoryData. If the collection is cleared, then the checkboxes should be returned to their default state.
Hi, @Drrickryp .
Thanks for the link, but it didn't help. Opening a new form in SharePoint still retains the checkbox info of the last saved form. I also notice that if you open a new form then cancel it, the checkboxes in previously saved forms are blanked out.
Here's my process and code, taken from the video by @Reza as well as other sources such as the link you sent.
Storing/removing SharePoint list values
OnVisible:
Clear(colCategoryData);
If(SharePointForm1.Mode <> FormMode.New,
(
Collect(colCategoryData,
LookUp(SPLISTNAME,ID=SharePointIntegration.SelectedListItemID,SPCOLUMNNAME)
)
@Anonymous
Check this post to see if the solution works for you. https://powerusers.microsoft.com/t5/Building-Power-Apps/multiselect-check-boxes-in-custom-SharePoint-form-with-PowerApps/m-p/1427869
Hi, Drrickryp.
Yes.
I followed Reza's vid, including info in the comments for SharePoint forms, and check boxes are still not clearing when a new form is opened.
Everything else seems to work fine.
MS.Ragavendar
20
BCBuizer
10
Super User 2025 Season 1
LC-26081402-0
10