Showing results for 
Search instead for 
Did you mean: 
Advocate III
Advocate III

on a powerapp form how do I change a field so it cant be edited

After a user creates a document in a powerapp form (is connects to sharepoint list) I want to have a few of the fields not editable if they go back into that form. 

Super User III
Super User III


In the DisplayMode property of the field use this code

If(your_form_name.FormMode=FormMode.New, DisplayMode.Edit, DisplayMode.View)


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."


I get an error see my attachment.  It doesn't like where I say my form.Formmode

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (11,728)