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 / Change between NewForm...
Power Apps
Unanswered

Change between NewForm and EditForm in Preview

(0) ShareShare
ReportReport
Posted on by 18

When I preview my app, it always shows the EditForm view. I need to test a behavior for the NewForm view and I'm getting tired of publishing over and over so I can test it in SharePoint.

 

How do I switch between EditForm and NewForm?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    _1.png

  • marymascari Profile Picture
    18 on at

    So that has nothing to do with the way the form performs "for real"? It's just for the preview?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @marymascari 

    The default can be set  to New in preview so that you can see the cards  but in real mode, the default is usually changed  with either NewForm(Form1)  or EditForm(Form1) in the function that selects the form.  Ie. an icon that navigates to the screen with the form such as Navigate(Screen1,None); EditForm(Form1)

  • marymascari Profile Picture
    18 on at

    So the preview isn't the same as running it, which is why the variables and data don't reset every time?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @marymascari 

    There are a few differences between the preview when you are developing the app and what happens in the actual production version of the app but very few in my experience.  When you are concentrating on a single screen during development, some of the variables may not have been instantiated, for example,  if they are created at Navigation from another screen.  To really see if they work, you may have to go into preview mode and start in the first screen at the beginning of the app and move to each screen to see how it works. 

    The mode of the form is usually set dynamically in the control that navigates to it using NewForm(Form1) or EditForm(Form1).  Even so, during testing you could put two buttons on the screen, one with the OnSelect property as NewForm(Form1) and another one as EditForm(Form1).  That way you wouldn't have to jump around to test how it looks. 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard