Donation Form events not firing
I successfully added an add-in for the donation form. I got my domain added to CSP. However, the events specified in the Donations (form) Extension Points documentation like gift-type-changed are not firing, nor are listed in the args.supportedEvent Types. My supportedEventTypes when the location is ‘form’ is an empty array. Please help!
Full args object from console on form:
- context: {location: 'form', donationSessionId: '8b59d6f3-5171-…….483e0', bodyStyle: {…}}
- envId: "p-N……WC_nQ"
- ready: ƒ (e)
- supportedEventTypes: []
- themeSettings: {mode: 'light', theme: 'modern'}
- [[Prototype]]: Object
Here is my app.js
var client = new BBSkyAddinClient.AddinClient({
callbacks: {
init: (args) => {
console.log("Add-in is initializing...");
console.log("Full args object:", args);
console.log("Context object:", args.context);
console.log("Location:", args.context.location);
// Store supported event types globally
var supportedEventTypes = args.supportedEventTypes || [];
console.log("Supported Event Types:", supportedEventTypes);
// Notify the host that the add-in UI is ready to be shown
args.ready({ showUI: true });
// Check before sending 'authorized' event
if (supportedEventTypes.includes('authorized')) {
client.sendEvent({
type: 'authorized',
context: {}
}).then(() => {
console.log("Add-in authorized successfully.");
}).catch((err) => {
console.error("Error sending authorized event:", err);
});
}
}
}
});
client.addEventHandler({
eventType: 'initial-gift-type',
callback: function (context) {
// get updated data from context object
console.log('Event fired:', context);
}
});
client.addEventHandler({
eventType: 'gift-type-changed',
callback: function (context) {
// get updated data from context object
console.log('Event fired:', context);
}
});
Comments
-
@Samantha McGuin Hi! You seem quite knowledgeable about the Sky-Addins. I'd love if you take a look at my post. Thanks!
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 398 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 651 Blackbaud Grantmaking™
- 570 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 The Tap (Just for Fun)
- 34 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 788 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)