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 / New Form 'Item' - can ...
Power Apps
Answered

New Form 'Item' - can this be the result of call to 'Defaults'?

(0) ShareShare
ReportReport
Posted on by 379

I'm trying to get a New Form working for a child Dataverse table. There are many defaults that should be set - some are the current date and current user, others would be set from the parent record.

 

Rather than implementing the 'If(Parent.FormMode=New, ... , ...)' pattern on every Form control's Default property, does it make sense to create a new record using the 'Defaults()' function, and pass that into the form as a Context Variable? If so, should the Form be set into 'New' mode, or 'Edit' mode (since it's receiving an Item, rather than being asked to create it's own default item)?

 

I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Good morning, @LenC , I am not sure If I clearly understand your question. But to use the Edit mode of the Form, the record that you are passing for the Form to be referenced by the Item property must be an existing record in the Data source.

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @LenC ,

     

    Actually Defaults(DataSource) will pre-populate the form with the default values set in that data source, not in the App.

     

    Check the doc link below:

    Defaults function in Power Apps - Power Platform | Microsoft Docs

     

    Best regards,

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard