Steve Sirica
asked on
Emulate Postback of "All Day Event" in custom list form
I have a Calendar list for time off request. I don't need a couple of the fields on the default NewForm.aspx so I did the whole "New From Existsing Page", delete the default content on the page and inserted a new custom sharepoint control based on a new calendar item. That all works great, except now I lost the postback date altering behavior of the "All Day Event" checkbox. How can I progrmatically recreate that?
I am using SharePoint Designer to alter my pages.
Thanks Steve
I am using SharePoint Designer to alter my pages.
Thanks Steve
ASKER
That only partially worked. Your solution took care of the field only and only if it has a Title. I actually found a better solution: http://moblog.bradleyit.com/2008/10/disabling-workspaces-from-sharepoint.html?showComment=1224610080000
It works great. Thanks for you help anyway.
It works great. Thanks for you help anyway.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The other option to modify the form is to hide fields with javascript. Revert your new/edit form to the default web part. In the snippet you will find a function that searches for form fields and changes their "display" style to "none". With SPD add at the end of the file the code and call the document.getElement... line for every field you would like to hide.
The title of the element is usualy its display name. To be sure - find the title of the element by viewing the source of the add/edit page and search for the name of the column.
Open in new window