Sep 09 2022 10:19 AM
I have a newform.aspx with 3 fields showing and 12 fields hidden by going in the content type to hide them. How can I show all these hidden fields in editform.aspx?
Thanks.
Sep 10 2022 01:33 PM
Sep 10 2022 10:45 PM
Hi @NMenB
You can use below PnP PowerShell on each of the field to achieve this.
Connect-PnPOnline <spo-site-url>
$ctx = Get-PnPContext
$field = Get-PnPField -Identity <field-name> -List <list-name>
$field.SetShowInNewForm($false)
$field.SetShowInEditForm($true)
$field.Update()
$ctx.ExecuteQuery()