cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarcoQ96
Level: Powered On

Locking a SharePoint list item field after input

I was wondering if there is anyway to lock a field of a SharePoint list item after the user has input the data for that specific field.

 

For instance, I have a gallery with several projects, each with a start date, but the end date has to be input by the user. After they have input the end date, how can I make sure that no one will be able to change the end date for that project?

 

Please keep in mind that I am still relatively new to PowerApps.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Locking a SharePoint list item field after input

@MarcoQ96 

One of the conditions you can look at is adding a formula to the DisplayMode property of the end date control.  Something like this:

   DisplayMode :   If(IsBlank(endDate), Edit, Disabled)

 

Now...this is very generic of a formula as I'm not sure of your app design and if this is a form with a datacard, a separate control or if there are other aspects to be considered.

 

Consider the above formula and feel free to post back if there are some parts you're not getting.

_____________________________________________________________________________________
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

2 REPLIES 2
Super User
Super User

Re: Locking a SharePoint list item field after input

@MarcoQ96 

One of the conditions you can look at is adding a formula to the DisplayMode property of the end date control.  Something like this:

   DisplayMode :   If(IsBlank(endDate), Edit, Disabled)

 

Now...this is very generic of a formula as I'm not sure of your app design and if this is a form with a datacard, a separate control or if there are other aspects to be considered.

 

Consider the above formula and feel free to post back if there are some parts you're not getting.

_____________________________________________________________________________________
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

MarcoQ96
Level: Powered On

Re: Locking a SharePoint list item field after input

@RandyHayes , I just tested your proposal and it worked just fine! Thank you very much.

 

I am working on a separate control, by the way.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,784)