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 / Editing nonvisible fie...
Power Apps
Answered

Editing nonvisible field for an edit form

(0) ShareShare
ReportReport
Posted on by 71

Hi,

 

I have an edit form where I also want to edit a field non-visible to the user. For example, I want to say set ThisItem.ApprovedBy to User().Email, so I can't use submitForm as this field is not available to edit on the form screen.

 

I tried thinking something like this:

Patch('DATA', Defaults('DATA'), {ApprovedBy: User().Email}, Form.Updates);

 

However, it did not seem to update my fields (for example my dropdown field). Anyone know any work arounds?

 

Thanks, in advanced.

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ash15 

    You are incorrect that you cannot use SubmitForm().  To add data to the underlying dataset, the card must be present in the form but it doesn't have to be visible.  Hidden cards can make it difficult to properly position cards on the form , so I recommend putting them at the bottom of the form.

    FYI, There is only one important item in an edit form card and that is the Update property of the card. Add the card for your ApprovedBy field, open its Update property and delete the text, replacing it with User().Email then hide the card.  It will work even if no one can see it. There is no need for a patch.

  • ash15 Profile Picture
    71 on at

    Great thank you so much!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Glad to help!Glad to help!

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard