Okay
  Public Ticket #2577901
JS Event
Closed

Comments

  • Delehaye started the conversation

    Hello

    Is there an event when you click on the continue button after choosing your appointment date on the calendar (see screenshot)?

    An event like this "window.beforeConfirmedBooking".

    If not, how to detect the click on this button?

  • [deleted] replied

    Hello Delehaye,

    Yes, Amelia has some JS hooks, that are triggered depending on the view and this is the list:

    window.beforeAddToCalendarLoaded()
    window.beforeBookingLoaded()
    window.beforeSearchLoaded()
    window.beforeSearchFiltered()
    window.afterSearchFiltered()
    window.beforeConfirmedBooking()
    window.beforeCatalogLoaded()
    window.afterSelectCatalogCategory(object_category)
    window.beforeCatalogCategoryLoaded(object_category)
    window.beforeCatalogServiceLoaded(object_category, object_service)
    window.afterSearchActivateService(object_appointment, object_serviceActive)
    window.afterSearchGoToSecondStep(object_appointment, object_serviceActive)
    window.afterBookingSelectDateAndTime(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.afterBookingSelectService(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.beforeConfirmBookingLoaded(object_appointment, object_service, object_provider, object_location)
    window.afterConfirmBooking(object_appointment, object_service, object_provider, object_location)

     

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.