cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Submit Form adding data to hidden fields

I have a power app that i have connected to a Azure sql db. Upon submitting the form, I'd like to fill in some fields that are not displayed on the form (Created, Modified, CreatedBy, ModifiedBy). I also want to link the values to a forigen key so that they get brought up correctly on the search page. 

 

For the Created By and Modified By, I'd like to take the context of the person filling out the form. 

 

I can't seem to find what I'm looking for in my research, anyone point me in the right direction?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Submit Form adding data to hidden fields

@dmowry 

For simplicity, you might want to consider putting those hidden fields in your form and then setting the Visible property of the DataCard to false.

Then in your Update property of the data card for those fields, put the formula for the value you want.  For example, if the CreatedBy and Modified fields are text fields, then use User().FullName or whatever else you want to go in there.

This way, when you submit, those values will be put into your data source.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Submit Form adding data to hidden fields

@dmowry 

For simplicity, you might want to consider putting those hidden fields in your form and then setting the Visible property of the DataCard to false.

Then in your Update property of the data card for those fields, put the formula for the value you want.  For example, if the CreatedBy and Modified fields are text fields, then use User().FullName or whatever else you want to go in there.

This way, when you submit, those values will be put into your data source.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,442)