web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / When creating an appli...
Power Apps
Unanswered

When creating an application page, submitform / newform

(1) ShareShare
ReportReport
Posted on by 321

I created an application screen in Power Apps
First, I executed the submitform using the button.
If you try to apply again after execution, the page does not appear.
No items to display” is displayed.

However, it is inserted into the dataverse. and defaultmode is FormMode.New

Second, I tried putting newform in the button, When you enter the page again, you will see the form. but data was not inserted into the dataverse. and defaultmode is FormMode.New

Third, I also tried adding refresh() to the button.
It has been inserted into the data bus, and the form is displayed even though “no items to display” are displayed.
How do I solve this?

Bingqiling_0-1693958845228.png

Bingqiling_1-1693958856592.png

Bingqiling_0-1693959671790.png

 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    In the Form Item property you may need a variable, such as gloCurrentItem
    So then in the Item property of your Form, put this formula:

    gloCurrentItem

    In the OnSuccess property of same Form, you may need to use formula

    Set(gloCurrentItem,Self.LastSubmit)

    somewhere in there.

    Then the last submitted item may show on the Form after submission.

    See if this may help @Bingqiling 

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    This may also help:

    Setting up the DefaultMode: You can conditionally set the DefaultMode of the form to FormMode.Edit or FormMode.New based on whether gloCurrentItem is blank.

    If(IsBlank(gloCurrentItem), FormMode.New, FormMode.Edit)
    

    This should set the form mode to "New" if gloCurrentItem is blank, and to "Edit" if it's not.

    Put this in the App OnStart if needed:

    Set(gloCurrentItem, Blank())

    Then click ellipses to right of App --> Run OnStrat to simulate running app from beginning while still in editor. 

     

    Adjusting OnSuccess: In the OnSuccess property, update gloCurrentItem as I have already suggested.

    Set(gloCurrentItem, Self.LastSubmit)
    

     

    Resetting the Form: If you are using a button to submit, consider resetting gloCurrentItem to blank when you want to insert a new record, with a reset button, on its OnSelect property:

    Set(gloCurrentItem, Blank()); NewForm(YourFormName)
    

     This will allow the form to be ready for a new submission since gloCurrentItem will be blank and DefaultMode will revert to FormMode.New.

    And then I assume you already have a Submit button whose OnSelect may be:

    SubmitForm(YourFormName)

     

    See if it helps @Bingqiling 

  • Bingqiling Profile Picture
    321 on at

    hi, @poweractivate 

    thank you. I tried your solution using SubmitForm.
    It's a good solution, but it also shows all the records you already selected when applying.
    At this time, how do I reset everything or make only the basic form appear?

  • Bingqiling Profile Picture
    321 on at

    hi, @poweractivate 

    Bingqiling_0-1693963509331.png

    This code creates another button and clicks it first, and the original button contains submitform, right?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard