In a site within a site collection, using SharePoint Designer 2010 we have created custom Display, Edit and View forms and assigned them to the
Item content type of a custom list as it's default forms. When looking at the
Forms property of the list, I can see all six forms listed: the three original forms (DispForm.aspx, EditForm.aspx, NewForm.aspx) and the three custom forms (displayifs.aspx, editifs.aspx, newifs.aspx).
Each site in the site collection has this custom list and I want to add these three custom forms to the custom list in each site in the collection as the default forms for items. In code I have tried copying the files from the
Item subfolder of the first custom list to the Item subfolder in each list in each site, and then setting the properties for the
Item content type's default forms to point to these new files (e.g DisplayFormUrl = "~list/Item/displayifs.aspx"; EditFormUrl = "~list/Item/editifs.aspx"; NewFormUrl = "~list/Item/newifs.aspx";) and I have also copied the fourth file
template.asxn to this folder in each list. However, I have not found how to add these new files to the
Forms property of the list iteself, as this property is read-only. It still only contains the three default forms.
Is this possible to do in code?
When I try to open the Display form or Edit form in
View Complete Post