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.
Thank you. It worked.
@Anonymous
If(IsBlank(endDate) || yourForm.Mode = FormMode.New, Edit, Disabled)
This has worked to lock the field in Edit mode and in the add New view. How can I have the Field available when creating a New item.
@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.
@Anonymous
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.
WarrenBelz
89
Most Valuable Professional
MS.Ragavendar
60
stampcoin
48