I have a form with a date/time field (Event Date). The user will enter both the date and time. I also have two other date/time fields on my form where I need only the time (Delivery Time, Removal Time). The date for Delivery Time and Removal Time will always be the same date as the Event Date, so there is no need to have the user select the same date an additional two times. Is it possible to let the user enter only the time (ie use only the time part of the control)? It doesn't appear that this is an option, so I'm wondering if I can set the date part of the Delivery Time and Removal Time fields so the user doesn't have to. This would be done at run time, when the user selects the Event Date. Then the user need only specify the times.
Solved! Go to Solution.
There is no such option to have a time control alone as far as I know, but the work around is using some CSS to hide the "Date" portion of the control and show only "Time" portion. Here is the link, please see my reply there.
In your case, you have to write some jquery to retrieve "Delivery Time", "Removal Time" controls time portion alone.
What I do is create two lists. One for the initial request, and a second list to hold the actual item to be approved. The first list has a field which is a date/time set to only show the date. It also has fields for start time, end time, duration etc. Usually these are actually choice fields (so minutes are set to 0, 15, 30 or 45, for example). That keeps it clean and user-friendly to the person submitting the request.
On item create, a list workflow fires which creates a new item in the second list. This list has all the proper Date/Time fields for start, end etc. The workflow takes the (single) date column, plus the various friendly hour/minute fields, and calculates the start/end dates as needed and populates them in the second list.
You can also put a lookup field in the second list which is a lookup into the first - so you have a column for "original request" to click on if you want to go back to that item.
Hope this helps someone