How to disable multi-booking on the same day on reservation portal?

Gursimran Singh
Tera Contributor

Hello , 

 

We recently updated our reservation portal to the newer version, but now it allows user to to book multiple spaces on a single day. Earlier , one user can select only one space per day.

 

Previous Version :-

Directly reserve it from the cards

GursimranSingh_0-1706305849255.png

 

New Version

It allow multiple desk selection per day (Add,Remove and Next button instead of Reserve)

 

GursimranSingh_2-1706305967442.png

 

 

 

Can we disable multiple booking per day?

8 REPLIES 8

Shaqeel
Mega Sage

Hi @Gursimran Singh 

 

You can follow these steps:

 

1. Navigate to the Reservation Management module in ServiceNow.

2. Open the Reservation Definition that you want to modify.

3. In the Reservation Definition form, there should be a field named "Allow Multiple Reservations Per Day". Uncheck this field.

4. Save the changes.

 

Please note that this is a general approach and the exact steps may vary depending on the specific configuration of your ServiceNow instance. If the "Allow Multiple Reservations Per Day" field does not exist in your Reservation Definition form, it may require custom scripting or configuration changes to achieve this functionality.

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Thank You Shaqeel.
There is no field "Allow Multiple Reservations Per Day" on the reservable module and I could not find it in docs.

Thank You Shaqeel for you reply on my question.
There is no field "Allow Multiple Reservations Per Day" on the reservable module and I could not find this in docs.

Joel Fontes
Tera Contributor

You can do it by customizing the Client controller of the WSD Search widget (/sp_widget.do?sys_id=8226e76a072110105b6782730ad30090).

 

1. At the function toggleReservableSelection, replace the

if ((isAnyOtherItemSelected(reservable) && (c.isOccurrence || c.isRecurring)) || (!reservable.is_available && !reservable.is_selected))
return;

 

with,

 

if ((isAnyOtherItemSelected(reservable) || (!reservable.is_available && !reservable.is_selected))
return;

 

 

2. At the function  _setCardActions(item), replace the

else if (!item.is_selected) {
var addAction = Object.assign({}, c.cardActions.add);
addAction.isDisabled = (c.isOccurrence || c.isRecurring) && c.isAnyItemSelected

with,

 

else if (!item.is_selected) {
var addAction = Object.assign({}, c.cardActions.add);
addAction.isDisabled = c.isAnyItemSelected

 

 

Now because you edited the widget you need to allow again the Restricted Caller Access Previlege of the Workplace Reservation Management scope. (/sys_restricted_caller_access.do?sys_id=9f64e6be0703201018826b6e0ad30067)

Just change the status to Allowed.

 

 

Let me know if it works!