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 / Pre populate a form in...
Power Apps
Unanswered

Pre populate a form in power app

(0) ShareShare
ReportReport
Posted on by 5

Can someone please assist me in creating a sale order application using Power App? I have created two forms - one for taking sales orders and the other for viewing and editing the data entered in the first form. However, I have been unsuccessful in my attempts to complete the project using various methods.

 

Please someone should help me out

Categories:
I have the same question (0)
  • zuurg Profile Picture
    546 Super User 2024 Season 1 on at

    How are you showing the 2 forms?   NewForm(formname) for the taking of the order and EditForm(formname) for the viewing/editing part?

  • Matt951 Profile Picture
    5 on at

    @zuurg No, am using two different forms. Because the second column has more fields than the first one

  • zuurg Profile Picture
    546 Super User 2024 Season 1 on at

    That's fine, but how are you showing the forms?

  • Matt951 Profile Picture
    5 on at

    I attached the following formula to the Onselect property of the submit button:Navigate(SalesOrderFormScr, ScreenTransition.Cover, { SONumber: ThisItem }). And I addded the following formula to the field am using in the second form:Default: Param("SONumber").RFQ. Then I got the following error:Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of value in other palces in your app.

  • zuurg Profile Picture
    546 Super User 2024 Season 1 on at

    Some screenshots would really help here.  🙂  

    A couple of things based on some assumptions I'm making from what you've provided:

    The Param function will be text, not a number, even if the SONumber is a number.  So if your datasource's SONumber data type is a number, you'll need to refer to it as Value(Param("SONumber")  

    Also, in my experience, instead of using ThisItem to refer to a record, I would explicitly do a LookUp of the record instead to make sure the schema stays the same: {SONumber: LookUp(dataname, ID=ThisItem.ID)}...

    Although there's nothing wrong with using 2 different forms for the data entry & view/edit, you can always chose to hide fields on the NewForm based on the form's FormMode property: datacard.Visible: frmMyForm.Mode=FormMode.Edit || frmMyForm.Mode = FormMode.View will only show the data card if the form's mode is not New

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard