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 Automate / Hide a field from Shar...
Power Automate
Unanswered

Hide a field from SharePoint New & Edit list forms will still show them inside Update Item action, is this a bug or it is the intended scenario

(0) ShareShare
ReportReport
Posted on by 3,506

I have a SharePoint list with those 2 site columns:-

 

1) LinkToFile

2) RequestedDate

 

now using Power-shell i hide those 2 columns from the New & Edit list forms, as follow:-

 

#Config Variables
$SiteURL = "https://******.sharepoint.com/sites/c1"
$ListName = "Custom"
$FieldName = "LinkToFile"
$FieldName2 = "LastRequested"
 
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive
 
#Get the Field
$Field = Get-PnPField -List $ListName | Where {$_.Title -eq $FieldName}
$Field2 = Get-PnPField -List $ListName | Where {$_.Title -eq $FieldName2}
 
#Hide the field from New Form
$Field.SetShowInNewForm($False)
$Field.SetShowInEditForm($False)
$Field2.SetShowInNewForm($False)
$Field2.SetShowInEditForm($False)
Invoke-PnPQuery

 

this will hide those 2 fields from the list forms correctly.. but still i can access those 2 fields inside Power automate and set those fields, as follow:-

 

johnjohn123_0-1683075286284.png

 

 

now this is what i need, to set those values by the system and not by the end users.. but not sure if this is a bug or it is the intended behavior that will not change in the future?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,181 Most Valuable Professional on at
    Re: Hide a field from SharePoint New & Edit list forms will still show them inside Update Item action, is this a bug or it is the intended scenario

    Hi @johnjohn123,

     

    As far as I am aware this is intended behaviour. You are not interacting with those forms via the update item action (that is a PATCH with the backend services). Hiding fields in forms won't affect these type of PATCH requests.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard