We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

help need to use the schedule widget in walkup experience

chercm
Mega Sage

hi i am trying to use the walkup-schedule widget but does it not seems to load the information 

 

i have added this to the client script : 

 

var CURRENT_PAGE = 'CHECK_IN';

 

 

 spUtil.get('walkup_schedule', { page: CURRENT_PAGE}).then(function(response) {
c.data.scheduleWidget = response;
console.log("walkup_schedule widget loaded:", c.data.scheduleWidget);
});

 

c.showCheckIn = function(schedule) {
if (schedule === undefined)
return false;
return (schedule.isCheckInOpen && !schedule.enableAway && c.data.queueId);
};

 

on the html i have added : 

 

<div class="schedule-widget" style="margin-top:20px;">
<sp-widget widget="c.data.scheduleWidget"></sp-widget>
<div ng-if="c.showCheckIn(c.data.scheduleWidget.data.schedule)">
</div>

 

image.png

0 REPLIES 0