Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

SubmitForm() resets the gallery it uses as a datasource



I have gallery. When someone selects a specific button on the gallery it brings them to a form which displays profile information. They can click edit, makes the form editable, and then when they click save it resets the gallery. The page suddenly acts like whatever the first item on the gallery was is selected. Is there a fix for this / is it supposed to do this? I feel like it did not always do this.


Thank you

Super User
Super User

@GeigerCDill Could you please tell me what's in the+,

The Item and Default property of you Gallery and the DataSource, Item and OnSuccess property of your Form.

@CNT Items: Sort(If(IsBlank(FilterSearchBox.Text),'Consolidated Billing CAGs',Search('Consolidated Billing CAGs',FilterSearchBox.Text,"CAG","Title","BillingSpecialistString","ARSpecialistString","ProgramMangerString","SalesRepString")),Title,Ascending)


Default is blank


The form utilizes more than one gallery depending on what the user selects

Item: If(AllProgramsButton=false,AllProgramsGallery.Selected,MyProgramsGallery.Selected)

DataSource: 'Consolidated Billing CAGs'

OnSuccess: false

@GeigerCDill You have 2 galleries. Which one is reverting back to the first record after submit?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,848)