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 / Submit form retain fie...
Power Apps
Unanswered

Submit form retain fields to prepopulate on new form....while using reset form

(0) ShareShare
ReportReport
Posted on by

I have two forms: form1 and form2.

 

I want to complete fields on form1 and have three of those fields auto-populate on form2. I have the auto populate working for the three fields. However, after the user hits submit on Form1 and navigates to Form2 I need to reset Form1 back to new mode. But when I do that it clears/erases all of the auto populated fields on Form2.

 

Currently using this formula in the default data cards for the fields on Form2 that need to be autopopulated. I have 3 instances with different field names but the format is the same.

If(!IsBlank(form1.LastSubmit.FactNumber),form1.LastSubmit.FactNumber,ThisItem.'PR Number')

 

On Success for Form1 currently has nothing but needs to reset the form but keep the last submitted data for the 3 fields on Form2

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @mjackson122 

    Put your Default properties back to the default properties.  Otherwise you will be breaking the Unsaved property function on the form.

     

    On Form1 in the OnSuccess action formula, but the following:

    Set(glbRecord, Self.LastSubmit); 

    NewForm(yourFormName)

     

    Then for your other forms, if you are creating new records from them, then set the default mode to Edit and DO NOT issue a NewForm on those forms, only EditForm if needed.

    And, set the Item property of those forms to: 

       Patch(Defaults(yourDataSource), {columnYouWant1: glbRecord.columnYouWant1, columnYouWant2: glbRecord.columnYouWant2, ...etc...})

     

    This will provide the functionality you are looking for.

     

    I hope this is helpful for you.

  • mjackson122 Profile Picture
    on at

    Just to clarify for on success "NewForm(yourFormName)" is to reset form1 correct so the formula would be NewForm(Form1)?

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @mjackson122 

    That is correct.  The NewForm will just put the form back into new record mode.

  • mjackson122 Profile Picture
    on at

    Okay in Form2 I changed default mode to edit. I also added the following to the items:

     

    Patch(Defaults(BEFactTable),{'PRNumber': varGlbRecord.factnumber}) and I receive the following error "Invalid formula expected a value compatible with data source"

     

    FYI just in case it's helpful factnumber is the columns value I am trying to retain from Form1

     

    I have two tables in the dataverse

    BEFact used for Form2

    GeneralV used for Form1

     

     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard