Javascript Event System - profile-page-before-add-friend
From KickApps Documentation
This article pertains to the Javascript Event System. You can refer to our list of Javascript Event System Supported Events to learn what else you can do with our event system.
Contents |
Summary
- This event is fired after a member clicks "Add to Friends" and before the request is submitted.
Payload Parameters
- memberId
- (number) The user ID of the friend to be added
Execution Interruption
- If your event handler returns false, the execution will halt and the member will not be added as a friend
Example
function onBeforeAddFriend(data) {
// do something here console.log(data.memberId)
} var newEventId = Ka.events.listen('profile-page-before-add-friend', onBeforeAddFriend);
Favorites






