web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Hidden Fields on Submi...
Power Apps
Unanswered

Hidden Fields on SubmitForm and Patch?

(0) ShareShare
ReportReport
Posted on by 11

Hi Everyone,

I have two hidden fields in a form, whose values i want to change upon SubmitForm with a button press;

One is a date field which i want to update to Now()

The other is a binary choice - I have selected a default value but this isn't populating automatically. I would like to specify this value as it is a required field.

 

Also, I would like to update the date field to Now() on a button press when the entry has been selected on a table.

 

How would I go about updating these as/before the form submission?

 

Sorry for the newbie questions!

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @BATOU 
    First you need to all your need field in your Form control.

    Then for your Date field to set to now() , you can use this expression in your DatePicker's Datacard - Update property:

    vyueyunmsft_0-1718679889853.png

    And then you can set this DataCard - Visible to false to hide this DataCard.

    vyueyunmsft_1-1718679920171.png

     

     

    For your Choice column , you can set the Combo box control - DefaultSelectColumns , For example:

    vyueyunmsft_2-1718680020853.png

     

    And you can also set this DataCard - Visible to false to hide this DataCard.

    vyueyunmsft_3-1718680063585.png

     

     

    Then you can use the SubmitForm(Form1) function to submit the Form data to your SharePoint list , the result is as follows:

    vyueyunmsft_4-1718680093691.png

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard