I want to know if a field is set to be shown in new form or not. so i run this power-shell script:-

PS C:\Windows\system32> $web = Get-SPWeb http://****/order/
PS C:\Windows\system32> $field = $web.Fields["Live Order"]
PS C:\Windows\system32> Write-Host  $field.ShowInNewForm

but i did not get any result..

  • Does the information help you? Feb 15, 2019 at 8:10

1 Answer 1


The SPField.ShowInNewForm is nullable property and is used to get or set a Boolean value that specify whether the field is displayed in the form that is used to create list items.

By default, the field will display in the form and the value is null.

You can output the $field and you will find the ShowInNewForm value.

Add-PSSnapin microsoft.sharepoint.powershell
$web = Get-SPWeb http://****/order/
$field = $web.Fields["Live Order"]

enter image description here

If the value is null, it also means that the field is displayed in the form.

Learn more about:

SPField properties

SPField.ShowInNewForm property

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.