7

I have custom forms for my list.

enter image description here

How to change default display/edit/new forms to those files with "-ifs.aspx" ?

Even better, can I do this without using SharePoint Designer? Is it possible to set default forms from web UI or maybe with PowerShell?

Tschareck
  • 2,155
  • 7
  • 35
  • 52

2 Answers2

10

You can set it as default from SharePoint Designer 2013 as well. You need to select the form and then it will enable the "Set as default" button control in the Ribbon.

enter image description here

Prasad Kondhare
  • 101
  • 1
  • 3
3

Using powershell, should be something like:

$web = Get-SPWeb http://path/to/web
$list = $web.GetList("/server/relative/path/Lists/ListUrl")
$list.DefaultDisplayFormUrl = "/server/relative/path/Lists/ListUrl/displayifs.aspx"
$list.DefaultEditFormUrl = "/server/relative/path/Lists/ListUrl/editifs.aspx"
$list.DefaultNewFormUrl = "/server/relative/path/Lists/ListUrl/newifs.aspx"

You cannot change these properties from the UI.

MdMazzotti
  • 4,787
  • 3
  • 17
  • 35