JavaScript for Radio Buttons
Joshua Kye avatar
Written by Joshua Kye
Updated over a week 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?