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 Pages / Update hidden field wh...
Power Pages
Answered

Update hidden field when submit/edit a form

(0) ShareShare
ReportReport
Posted on by 111

When edit and submit a form, how to update a hidden field (not on the form)'s value based on another field's value changing on the form?

 

For example, there is a Feedback table includes the below two fields:

Feedback Details: text

Feedback Details Updated: true/false

 

If a user open the feedback on the edit form, and changed the Feedback Details, when the user click the Submit button, the Feedback Details Updated field needs to be updated to true by the system, how to do this?

Or could add further condition, if there was no changes to the Feedback Details, then no need to update the the Feedback Details Updated field when click the Submit button.

 

Categories:
I have the same question (0)
  • Verified answer
    mago_00 Profile Picture
    44 on at

    Hi,

     

    There are three ways to achieve this:

    1. Through entity form metadata, you can set the value of the Feedback Details Updated to true

    2. If there is a certain condition that you need to check before setting the field to true, you will need to do by adding javascript to the form and set the field to true if condition is met.
    3. Alternatively, do the field update via a workflow triggered by the field update

     

     

  • HRN Profile Picture
    2 on at

    Hi,

     

    A better way is to use a combination of If and Patch functions when submitting the form. Something like this:
    If( condition , Patch(listName, Lookup(Id=ThisItem.Id), {fieldName : true}) );

     

    Cheers,

    Hamid

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 Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 33

#3
11manish Profile Picture

11manish 20

Last 30 days Overall leaderboard