How to remove duration as 1 - hour on reservation details on WSD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
22 hours ago
Hi Team,
We have a requirement from the client where they do not want the default “1 hour” duration to be shown during reservation, because they are booking only by date (not by hours/minutes).
Currently, even though the reservation flow captures date only, the system still displays a default duration of 1 hour on the Reservation Details page, which is confusing for users.
Steps to reproduce:
- Go to Make a Reservation page.
2. Select a date and proceed by clicking Next.
3. On the Reservation Details page, observe the right‑hand section.
4. The Duration field always shows “1 hour”, even though no time selection was provided.
- Since users are booking by date only, the system should display only days (date‑based).
- The default 1 hour duration should not appear at all.
I have already checked the Reservable Module configuration (for desks / meeting rooms). Although minimum and maximum duration values are configured, there is no explicit configuration for “1 hour” or “60 minutes” anywhere. This indicates that the default 1‑hour duration is not coming from the module configuration, but is being applied by the UI/system logic.
Thanks in advance.
@_raj_esh Do need full.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
53m ago
PFA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
21 hours ago
Hi @SakeenaF
The time_picker_interval_size property for reservation start time and reservation end time is configured using the Service Portal Widget instances. The start time and end time field increment value depends on the value set in the time_picker_interval_size. Default reservation time increment value duration is 30 minutes.
Refer Servicenow Documentation:
Configure reservation multi-day settings in Reservable Module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
21 hours ago
Hi Tanu, Thanks for the reply. But there is no property as such in my system. But when i checked angular provider and angular template it is quite different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
17 hours ago
Hi @SakeenaF
I checked the code and my findings are as follows:
The Duration is being calculated based on the “Start Time” and “End Time” selected on the first page while creating the reservation.
Please see below:-
So, you need to figure out why the time dropdown is not visible on the first page for time selection.
Once the time is selected from the dropdown, the Duration will be calculated automatically based on the selected Start Time and End Time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
41m ago
Hi Laveena,
Thanks for the reply. Yes you are right it is coming from the make reservation page. Just to let you know as per the client we have removed time from and to. Please find the screenshot below.
below.
The removal of the time fields has been implemented at the UI level in the Angular ng-template wsdSearchFilterTemplate, and I have successfully removed it from there.
However, the underlying functionality that controls this behavior is handled in the Angular provider wsdSearchFilter (around line 4403). While I tried modifying the logic at this level as well, unfortunately, the change does not seem to have any effect and the default behavior is still persisting.
Could you please suggest any alternative solution or the correct approach to fully handle this requirement?
Thanks.
