Skip to main content
All CollectionsSubscriptionsOthers
JavaScript for Radio Buttons
JavaScript for Radio Buttons
Updated over 10 months ago

Use the code below if you wish to add click events for the subscribe & save radio button for the subscription widget:

SellingPlanSelected

document.addEventListener('AppstleSubscription:SubscriptionWidget:SellingPlanSelected', function() {
console.log('SellingPlanSelected');
});

SellingPlanRemoved

document.addEventListener('AppstleSubscription:SubscriptionWidget:SellingPlanRemoved', function() {
console.log('SellingPlanRemoved');
})

widgetInitialised

document.addEventListener('AppstleSubscription:SubscriptionWidget:widgetInitialised', function() { // WRITE CODE HERE })


โ€‹

Did this answer your question?