Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

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

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


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

Top Solution Authors
Top Kudoed Authors
Users online (76,022)