javascript validation event

Posted · Add Comment

Scheduler › Forums › BirchPress Scheduler › javascript validation event

This topic contains 5 replies, has 3 voices, and was last updated by  Andrei Kostusev 10 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10586

    Luke
    Keymaster

    We have replied to your ticket.

    #10588

    Kevin Sloan
    Participant

    What ticket?

    #10610

    Luke
    Keymaster

    I am sorry I made a mistake. There was a ticket asking the same question.

    To trigger an action after booking an appointment. Please use the following code.

    
    birchpress.addAction('birchschedule.view.bookingform.bookingSucceedAfter', function() {
    //YOUR CODE
    });
    
    #10612

    Kevin Sloan
    Participant

    Cool. Thanks!

    #25523

    Andrei Kostusev
    Participant

    Just to double-check: this should be entered into
    wp-admin > Appointments > Settings > Custom code > JavaScript
    ?

    So, for example, to trigger a ga() event one needs to enter:

    <script>
    birchpress.addAction(‘birchschedule.view.bookingform.bookingSucceedAfter’, function() {
    ga(“send”, {
    hitType: “event”,
    eventCategory: “myCategory”,
    eventAction: “Submitted”,
    eventLabel: “myLabel”
    });
    });
    </script>

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘BirchPress Scheduler’ is closed to new topics and replies.

Comments are closed.