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 / Default value for a ne...
Power Apps
Unanswered

Default value for a new form

(0) ShareShare
ReportReport
Posted on 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!

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    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)


  • JohnJDB Profile Picture
    58 on at

    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 at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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!

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard