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!
Hi NandiniBhagya,
Thanks for your message. I've had a look at that page. It says
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.
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!
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
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!
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)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1