I had made a list and created a custom list form (Insert -> Sharepoint Controls -> Custom List Form). Then, I completely deleted the list (but copied the custom list form) and then recreated it, having changed a few fields. There is only one field I'm concerned with on my custom list form and it hasn't changed in name or datatype and the lis开发者_运维问答t name hasn't changed either. Do I need to regenerate (and then customize) the Custom List Form or can I just use the copy I made and cut/paste it back into the list folder?
Well, no one answered and I have a solution that works well enough. I just don't know if it's optimal:
- Copy the old/current list GUID.
- Delete and recreate the list.
- Copy the new list GUID.
- For each custom list form, find and replace the old list GUID with the new list GUID.
- Remove/Update any references to the data parameters near the beginning of the list form web part.
- Remove/Update any references to the parameters in the actual fields.
精彩评论