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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Make fields View Only ...
Power Apps
Unanswered

Make fields View Only upon Edit

(1) ShareShare
ReportReport
Posted on by 64
I am using the Power Apps functionality to customize a list form and also very new to the process.  The form requires entry of all fields for a new entry, but I would like to make most fields View only for editing.  There are just a view fields that can be edited, the rest need to remain untouched.  What is the best way to handle this using Power Apps to customize the SharePoint List form? 
 
I tried to set the Display Mode of one field to 
 DisplayMode.View
but that made the field display only for new entries as well. 
 
Thank you
Categories:
I have the same question (0)
  • Verified answer
    Robu1 Profile Picture
    1,450 Super User 2025 Season 2 on at
    Make fields View Only upon Edit
     
     
    Thank you for choosing Microsoft Community.

    To make most fields view-only for editing while allowing all fields to be entered for new entries, you can use conditional logic in Power Apps.
     
    Here's a step-by-step guide:
     
    Steps to Customize SharePoint List Form in Power Apps
     
    Open Power Apps Studio:
    Go to your SharePoint list.
    Click on Integrate > Power Apps > Customize forms.
     
    Unlock Data Cards:
    Select the data card you want to make view-only.
    In the right-hand pane, click on Advanced and then Unlock to change properties.
     
    Set DisplayMode Property:
    For each field you want to be view-only during editing, set the DisplayMode property to:
     
    If(
        SharePointForm1.Mode = FormMode.New,
        DisplayMode.Edit,
        DisplayMode.View
    )
     
    This ensures the field is editable when creating a new entry but view-only when editing an existing entry.
     
    Repeat for All Relevant Fields:
    Apply the same logic to all fields you want to be view-only during editing.
     
    Example:
    For a field named Title_DataCard1, set its DisplayMode property to:
    PowerApps

    If(SharePointForm1.Mode = FormMode.New, DisplayMode.Edit, DisplayMode.View)
     
    This approach allows you to control the editability of fields based on the form mode, ensuring that fields are editable when creating new entries but view-only when editing existing ones.
     
    Here's some documentation on  customising a sharepoint list form in Power Apps:
     
    Does this help with your customization?
     
     
    If this fixes the issue, please mark as resolved to help others with find it.
    Happy to help 
    Robu 1
     
  • WarrenBelz Profile Picture
    152,843 Most Valuable Professional on at
    Make fields View Only upon Edit
    Disregard - answered after I refreshed.
     
  • tverticchio Profile Picture
    64 on at
    Make fields View Only upon Edit
    Perfect.  Thank you

    I tried to mark the Suggested Answer as Answered my question, but the check mark doesn't seem to save.  
  • WarrenBelz Profile Picture
    152,843 Most Valuable Professional on at
    Make fields View Only upon Edit
    I have marked it for you

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard