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 / How To Remember a Spec...
Power Apps
Unanswered

How To Remember a Specific User Input from Previous Form Submission and Set as Default?

(0) ShareShare
ReportReport
Posted on by 5

Hello! 🙂

 

I'm stuck with implementing a feature into my app and wonder if anyone here can help me.

 

I have built a workplace booking app. I want the app to load in the users previous selection so that they don't have to repeatedly input the information every time they want to book a workplace. I thought about using a SharePoint list as a sort of repository to save the users previous booking data and then tell PowerApps to retrieve that users information next time they open the app. I have no clue if that is even possible. If it is, how would I go about achieving this? If not, what other possibilities do I have? Maybe there are simpler ways that I'm overlooking.

 

I tried using the solution proposed here but to no avail.

 

Thank you for any help!

Categories:
I have the same question (0)
  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    This is definitely doable. I'm not 100% certain, but I suspect that the sharepoint list idea is your best bet.

    Make sure you have a column to store the user(could be their profile, an email, any unique field really) so you can reference this to find the record.

    Then, on the app load, set a variable using a lookup(YourList, UserField = UserComparableValue).

    Additionally, when they submit a record, check if they've submitted previously, if they have, update the existing record for them, if they haven't create a new one for them.

     

    As an example, lets assume you store them by email in SP, as a Text Column. Also assuming you're submitting these with a Form Control.

     

    To get existing records for them(in App.OnStart):

     

    Set(PreviousRecord, LookUp(*YourList*, Email = User().Email))

     

    Set the Defaults of your inputs as:

     

    PreviousRecord.*AssociatedField*

     

    And when they submit(If using a form, in the form's OnSubmit):

     

    If(
     IsBlank(LookUp(*YourList*, Email = User().Email)),
     Patch(
     *YourList*, 
     Defaults(*YourList*), 
     {
     Email: User().Email,
     Field1: *YourForm*.LastSubmit.AppropriateValue1,
     Field2: *YourForm*.LastSubmit.AppropriateValue2,
     Ect.
     }
     ),
     Patch(
     *YourList*,
     LookUp(*YourList*, Email = User().Email),
     {
     Email: User().Email,
     Field1: *YourForm*.LastSubmit.AppropriateValue1,
     Field2: *YourForm*.LastSubmit.AppropriateValue2,
     Ect.
     }
     )
    )
    

     

     

    Hope this helps!

  • Tricksle Profile Picture
    5 on at

    Thank you very much!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard