help need to use the schedule widget in walkup experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2025 10:44 PM - edited 02-21-2025 10:49 PM
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>