How to disable multi-booking on the same day on reservation portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 01:54 PM
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
New Version
It allow multiple desk selection per day (Add,Remove and Next button instead of Reserve)
Can we disable multiple booking per day?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2024 01:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2024 12:06 PM
Thank You Shaqeel.
There is no field "Allow Multiple Reservations Per Day" on the reservable module and I could not find it in docs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2024 12:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 04:33 AM - edited 03-06-2024 06:54 AM
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!