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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Locking a SharePoint l...
Power Apps
Answered

Locking a SharePoint list item field after input

(0) ShareShare
ReportReport
Posted on by

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.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @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.

  • Community Power Platform Member Profile Picture
    on at

    @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.

  • Community Power Platform Member Profile Picture
    on at

    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 Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    If(IsBlank(endDate) || yourForm.Mode = FormMode.New, Edit, Disabled)

  • Community Power Platform Member Profile Picture
    on at

    Thank you. It worked.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard