cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Goochy13
Frequent Visitor

Set Value of a hidden column on a SharePoint list within PowerApp

Hi,

 

  • I have a PowerApp which has a form to populate a SharePoint list.
  • I have a hidden column on this SharePoint list.
  • I want to populate this hidden column with a value from another column that is not hidden and the user will be populating.

How can I do this? Ideally I would populate it before submitting the form, but I don't have to, I'm not fussed.

 

Thanks

2 REPLIES 2
Drrickryp
Super User II
Super User II

Hi @Goochy13 

You could put a patch in the OnSuccess property of the form.

Patch(Splist, Form1.LastSubmit, {hiddencolumn: Textinput.Text})

v-qiaqi-msft
Community Support
Community Support

Hi@Goochy13

Do you want to populate the hidden column with the current user name?

Could you please tell me that is this hidden column a read-only column generated automatically by SP list?

Combine that with your description, I assume that this hidden column is 'Created By' , you want to modify the user within the 'Created By' with another column value and this unhidden column is populated with a certain user name, right?

If my understanding is correct, I am afraid that there is no way to achieve this currently in PowerApps.

The 'Created By' column is generated automatically by SP list that will be populated with the user who created this record when submitting the form. This kind of column(generated automatically by SP list) is read-only that we could not modify it.

As an alternative solution, I think you could consider creating a new column to achieve this.

I assume that another unhidden is a Person column containing users display name.

Create a Text column and add this field into your form, set its Default property as below:

DataCardValue8.Selected.DisplayName

Note: DataCardValue8 represents the Combo Box corresponding to the unhidden Person column.

This will help you populate it before submitting the form.

If I misunderstand your needs, please feel free to contact me.

Regards,

Qi

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (68,893)