I have a gallery which i use to populate data in a form. This is what I want to achieve:
1. I select Item 1 in the gallery.
2. The upper part of form gets populated with data coming from Sharepoint List.
3. User edits the lower part of the form.
4. Once done, user clicks the submit button.
5. Item 1 in the gallery disappears and gallery shows the 'unprocessed items' until all items have been processed and submitted.
6. On the submission of the last item in the gallery, the screen navigates to a SuccessScreen.
Steps 1 to 5 are already done. How can I achieve Step 6? Any help would be appreciated.
Solved! Go to Solution.
Nothing happens. The screen just didn't navigate to the Success Screen even if the gallery and the form are already empty after submitting the last item.
Well, in reality, the Gallery will not have reevaluated it items at the OnSuccess time.
So, if you know that the last item being submitted is the last on the list, then you can also go with this:
If(CountRows(Gallery.AllItems)<2, Navigate(scrSuccess))
I have another method in mind, but give this a shot first.
That worked! You're a saviour! But I'm curious why the value has to be <2? I actually tried <1 and it didn't work.
Well, it was really just trying to get the value of 1. But, I decided to not exclude 0. And so setting it to =1 would not do what was needed in case there was actually 0.
Glad it is working for you now!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
177 | |
52 | |
41 | |
36 | |
27 |
User | Count |
---|---|
240 | |
81 | |
71 | |
69 | |
66 |