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
- New YourCause Community TEST
- New SKY Community TEST
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 12 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 7 Blackbaud Community Help
- 218 bbcon®
- 1.4K Blackbaud Altru®
- 409 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 680 Blackbaud Grantmaking™
- 598 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 952 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 7K Blackbaud Raiser's Edge NXT®
- 3.9K SKY Developer
- 257 ResearchPoint™
- 123 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 247 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) 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
- 822 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)