Hi, Can any one help me how to change the exsting body content dynamically in HubSpot CRM card when we click on different buttons below or serverlessFunction how to receive the responce.
You can change the existing body content dynamically in a HubSpot CRM card by using JavaScript. When a button is clicked, you can update the content of the card by accessing the elements in the DOM and modifying their inner HTML or textContent properties.
To receive the response from a serverless function, you can use an AJAX call to make a request to the function's endpoint. The function should return the desired data in a format that can be parsed and used to update the card's content.
Here's an example of how you could change the body content of a card in response to a button click using jQuery and AJAX:
Hi @himanshurauthan , Thanks for your quick respose🙏. Can you please guide me how to include jquery function in my code? when I include it's showing error as jQuery is not defined.
// For external API calls const axios = require("axios");
exports.main = async (context = {}, sendResponse) => { // Store contact firstname, configured as propertiesToSend in crm-card.json const { firstname } = context.propertiesToSend;