Search.../

onBadgeUnassigned( )

Developer Preview

Triggered when a member's badge is removed.

Syntax

function wixBadges_onBadgeUnassigned(event: BadgeUnassignedEvent): void

onBadgeUnassigned Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BadgeUnassignedEvent

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBadgeUnassigned example

Copy Code
1
2 export function wixBadges_onBadgeUnassigned(event) {
3 const eventId = event.metadata.id
4 const entityId = event.data.badge._id;
5 }
6
7