I am currently working on a SharePoint Online site from a project site template and I wanted to create a new, custom from for adding tasks to the default tasks list. Steps I followed:
- I launched SPD 2013 and opened my site
- navigated to the default tasks list
- in the Forms section clicked New,
- chose "New item form",
- Selected Task as the content type to use,
- did NOT mark it as default form
- checked to create link in list item and ribbon,
- typed a name
- clicked OK.
- Opened my site>task list in a browser...
And the result is far from perfect:
- There's no link to the new form in the Ribbon; There's no entry about a custom action leading to this form from the Ribbon in SPD either, it only gets added to LIM.
- If I go from the LIM or type the url directly to a browser the form itself doesn't work: it throws a totally useless error "Sorry, something went wrong. An unexpected error has occurred" with no further info whatsoever. No log, no details, nothing.
I checked the source code for the new form - it is EXACTLY the same as the NewForm.aspx (the default one for a new item) - to the letter, however, when I go to Web Part Maintenance Page for my custom form and for the default form there is a difference:
- the default form has a
ListFormWebPart
- the custom form has a DataFormWebPart
although - as mentioned - the code is exactly the same.
//EDIT: the code is the same when I open .aspx files by navigating there with Windows Explorer and opening them in a text editor. Within SPD thy have different code.
I tried it also with setting the new form as a default one for this content type - the problem persists.
The problem exists on any site I have on our company's Sharepoint, so it is not site-specific.
The problem was replicated by our site-collection owner (or whatever you call the uber-admin in Sharepoint), so it is not related to permissions either.
Any hints?
//EDIT 2: Also at some point SPD decided not to show NewForm.aspx although the file was present on the server and I DID NOT touch it at all; Reverting the default form was only possible because sometime earlier I have copied the <ZoneTemplate> tag contents...
Thankfully, otherwise any new form I was creating (to retrieve a default one) was causing an error. This is so FUBAR...