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 / Submit form as current...
Power Apps
Answered

Submit form as current user

(0) ShareShare
ReportReport
Posted on by 27

I just want to submit the filled out form as the user currently logged in / editing the form. Do I need to edit the Items line or something?

Bonus: I would also like to Submit a form where the form is not present and filled out for the currently logged in user, so no reference of data cards or forms. I just want to change data for the logged in used based on OnSelect functionality.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    HI @FailSafe ,

    The logged in user will be the person in the Modified by in the line item (unless it is changed again). Are you storing the data in another field as well? For the second question, you cannot change the Modified by from the logged-in user if that is what you are meaning.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    One clarification on what @WarrenBelz posted.  You can't change the Modified By using Power Apps, but you can change the Modified By using a Http REST call in a Power Automate flow.

  • FailSafe Profile Picture
    27 on at

    I'm doing:

    OnVisible

     

    UpdateContext({CurrentUser:User().Email})

     

    For the HomeScreen / First Screen. But it doesn't seem to carry into other screens.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Context variables are scoped to a particular screen.  If you want to use CurrentUser on other screens set a Global variable instead

     

    Set(CurrentUser, User().Email)

     

  • FailSafe Profile Picture
    27 on at

    I tried going the Power Automate route only to be infuriated by a looping issue of "Apply to Each" when trying to Create Item within Sharepoint list when adding an Initialized Variable to insert data into the list.

  • FailSafe Profile Picture
    27 on at

    Submitting the form with this spawns entries for all users in the list. 4 of them for each user actually.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Unfortunately, If you want to control system fields like Modified By its the only way.  Not sure what your issue was with Create Item and loops, but if you post it in the Power Automate forum we can help figure it out.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Could you explain a bit more about what you are trying to do?  As @WarrenBelz mentioned when you submit a form in Power Apps the record is created in the Data Source As Created by or Modified by the user who is running the Power App.  

  • FailSafe Profile Picture
    27 on at

    What I'm attempting to do is SubmitForm as the currently logged in user for OnSelect when a button is pressed. I would also like to predefine a SubmitForm process when another button is pressed. but I don't want it too specific to my immediate need because I want to know how to generally do this in the future using other inputs/data. I've googled enough that I could make a hidden combo/select box and have this taken care of super easy, but I'm stubborn.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    1) SubmitForm does submit as the current user when pressing a button in the OnSelect. There is no way to change that in Power Apps. 

    2) There is no way to Submit the Form as a different user. 

    3) You can use almost any action property (OnSelect, OnChange, etc ) to Submit a form.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard