How to remove duration as 1 - hour on reservation details on WSD

SakeenaF
Tera Contributor

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:

  1. Go to Make a Reservation page. 
87ac15e1-3ac4-4f6b-b15e-37262cedad17.jpg

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.

96c481ee-57e7-4d39-9bb8-20cb249b7b4a.jpg

 

  • 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.
Note:
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.

10 REPLIES 10

SakeenaF_0-1778131811923.png

PFA

 

Tanushree Maiti
Kilo Patron

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:

 Create a reservation 

Configure reservation multi-day settings in Reservable Module 

 

 

Workplace Service Delivery - What's New for August 4, 2022

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

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.

Laveena-Agarwal
Mega Sage

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:-

Screenshot 2026-05-06 at 7.08.34 PM.pngScreenshot 2026-05-06 at 7.09.28 PM.png

 

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.

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.