onMessageButtonInteracted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

An event that triggers when a postback button is clicked.

The onMessageButtonInteracted() event handler runs when contact, member, or site visitor clicks on a postback button that was sent with a message. The received MessageButtonInteracted object contains information about the interaction with the postback button.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventMessageButtonInteracted

Information about the button interaction and metadata for the event.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?