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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create a new blank record
Power Apps
Unanswered

Create a new blank record

(0) ShareShare
ReportReport
Posted on by 61

Hi,

Currently, If I create a new record in my app, fields are already populated, I would like to be able to create a new record where all fields are blank, text, dropdown etc, so the user is prompted to select or enter a value

 

Any assistance is greatly appreciated...

 

Thanks

Geoff

 

 

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    It sounds like you are using a form, so I'll run with that assumption.

     

    First, make sure the form is in DefaultMode=FormMode.New by using the NewForm() function. This preps the form control to make a new record.

     

    If that doesn't clear values from coming up automatically, then you will need to edit the Default property of each card/control in the form that you want to override. Defaults can come from the underlying data source, a parent control, or some other value from within the app.

    If there are specific ones you need help with, please post info on here about the control and what is currently in the Default property for it and for its parent card.

  • Geoff100 Profile Picture
    61 on at

    Hi,

    I am not sure if I fully understand, I have an auto-generated app based on a SharePoint list. Do I set the Default property of the edit screen to FormMode.New...?

     

    As an example, I have a field on the edit screen

    The card is called "Shift: and the Default property = ThisItem.Shift

    the dropdown within the card is called Dropdown_Shift and its default = Parent.Default

     

    So in the event, a user clicks on the + button in the gallery I would like to present the user 

    all fields blank, so they must select

     

    Thanks

    Geoff

     

  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    @Geoff100 wrote:

    Hi,

    I am not sure if I fully understand, I have an auto-generated app based on a SharePoint list. Do I set the Default property of the edit screen to FormMode.New...?

     

    As an example, I have a field on the edit screen

    The card is called "Shift: and the Default property = ThisItem.Shift

    the dropdown within the card is called Dropdown_Shift and its default = Parent.Default

     

    So in the event, a user clicks on the + button in the gallery I would like to present the user 

    all fields blank, so they must select

     

    Thanks

    Geoff

     


    This info helps me understand better -- thanks. Using the auto-generated app, do the following steps to open a form in FormMode.New:

    • Add the + symbol to the menu bar at the top of the DetailScreen1
    • Right click on EditScreen1 and select Duplicate. A new screen should be created called EditScreen1_1 
    • In the OnSelect property of the new + icon put: NewForm(EditForm1_1);Navigate(EditScreen1_1, ScreenTransition.None)

    This creates a form that is ready to accept new inputs. You may wish to modify the cards shown on this form as well as their Default and Update properties to suit the info you want to go back into your Sharepoint list.

     

    How does that work?

     

     

  • Geoff100 Profile Picture
    61 on at

    Thanks for the assistance this joined a lot of dots for me........

  • Geoff100 Profile Picture
    61 on at

    Hi,

    If I duplicate the Edit form and navigate from the browse gallery + button, the new form populates with the first record in the SharePoint List, how to I create a blank new form...?

     

    Any help appreciated

     

    Thanks

    Geoff

  • BCLS776 Profile Picture
    8,994 Moderator on at

    @Geoff100 wrote:

    Hi,

    If I duplicate the Edit form and navigate from the browse gallery + button, the new form populates with the first record in the SharePoint List, how to I create a blank new form...?

     

    Any help appreciated

     

    Thanks

    Geoff


    The form has a property called Item, and there is probably something in there. Try clearing that out.

  • Geoff100 Profile Picture
    61 on at

    Hi,

    The Item property associated with the EditForm1_1 is blank, however, creating a new form still populates

    all fields (dropdowns) on the form

     

    Thanks

    Geoff

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    OK, each dropdown & card associated with the form will have a Default property that sets the initial value of the dropdown. Often the Default of the dropdown is set to Parent.Default, which means it inherits the default from the card it is within. You can clear those Default properties or set them to another desired value if you like.

  • Geoff100 Profile Picture
    61 on at

    Hi BCLS776,

    I have 3 dropdowns that reference lists for their values, I have cleared the default values on each card and on both dropdown controls. They still appear to reference the first record in their respective lists., I would like to have a default value like "Select..."

     

    Thanks

    Geoff

  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Oh, I forgot to mention on dropdowns, the AllowEmptySelection property must be set to true to allow a blank default state; otherwise, it will self-select the first value from Items.

    For a "Select One..." type of default choice, there are a few ways to do it - see this thread. However, with dropdowns it is always some sort of workaround to make that text display. With a combobox, there is a property called InputTextPlaceholder that does exactly what you're after, so changing to that kind of control might be the solution for you.

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard