Skip to main content
Community site session details

Community site session details

Session Id : bxl6azYpqEItVmJYOy03iX
Power Apps - Building Power Apps
Unanswered

Default value for a new form

Like (0) ShareShare
ReportReport
Posted on 22 May 2023 16:49:20 by 58

HI All,

 

When setting up a screen with a form set to NEW mode.  Whats the best Default setting?  Should it be blank?  I've been using forms from the templates available and changed a form from EDIT mode to NEW mode but the default values are set to Parent.Default.

 

I'd like a new form to show nothing in the available fields.

 

Thanks!

  • Community Power Platform Member Profile Picture
    on 23 May 2023 at 14:16:10
    Re: Default value for a new form

    Hi NandiniBhagya,

     

    Thanks for your message.  I've had a look at that page.  It says

     

    "NewForm

    The NewForm function changes the Form control's mode to FormMode.New. In this mode, the contents of the Form control's Item property are ignored, and the default values of the Form's DataSource property populate the form. If the SubmitForm function runs when the form is in this mode, a record is created, not changed."

     

    when I look at the data card for the first field I see this as the default.

    pic2.png

     

    So is this why it shows a previous records info sometimes?

     

    As an example,  when I first open the screen directly using the > play button its blank.  I fill in the details and then use my save button and it works.  I then use the > play button again and it shows the first record in the SP list. 

     

    If I close the app designer, then reopen the app in the designer, and open the screen again, it again shows as blank.

     

    Its like there is a bug in the designer.

     

    Do you know whether in a new form I should really have the default set to nothing for all datacards?

     

    I'm just thinking if this is a bug or if its because I have something in the Default function and if so, should it be blank for a form thats always going to be used set as New.

     

    Thanks!

     

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on 22 May 2023 at 18:24:12
    Re: Default value for a new form

    Hi @JohnJDB ,
    NewForm(FormName) function will ignore if you have put anything in Item property of the form. Item property plays an important role in case of Edit and View forms. Please find below link to get more information about form related functions in power apps:
    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-form

  • JohnJDB Profile Picture
    58 on 22 May 2023 at 17:35:39
    Re: Default value for a new form

    I asked because some times when I'm testing moving to the form set to New mode from a menu screen, I see the first record shown.

     

    So,  why would it show if it doesnt make an impact? 

     

    I have added a NewForm(myform) function and it doesnt seem to happen now.  But would you have any idea why if the form is set to New mode anyway?  Thanks!

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on 22 May 2023 at 17:03:37
    Re: Default value for a new form

    HI @JohnJDB ,
    Setting default value to Parent.Default will not have any impact in forms in New mode as the value will be Blank. When navigating to new form screen, make sure you use NewForm(FormName);Navigate(ScreenName)


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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1