Hi @IndianaGirl ,
The issue is not the SubmitForm() as that simply submits the form. The issue is the record the form is displaying by Default which will be the last record that was selected from your gallery, which is probably the Item of the Form (GalleryName.Selected). If you want to immediately display a new record created in a Form, there are some changes needed. There are several ways of doing this (and I am assuming you are using SharePoint here), but I use this one.
On the OnSelect of your gallery, put this ( I assume you are navigating to the screen)
Set(gblID,ThisItem.ID);
Navigate(YourSreenName)
Then the Item of your Form is
LookUp(
YourListName,
ID=gblID
)
Now you can do the last piece - on the OnSuccess of the form
Set(gblID,Self.LastSubmit.ID);
EditForm(Self)
This will show the new record you have just saved with the form in Edit Mode.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.