sendFeedback() - Fluid Topics

Fluid Topics Integration Guide

Category
Reference Guides
Audience
public
Version
Latest

The sendFeedback() JavaScript method makes it possible to send feedback about a map or topic. It is only available in the Reader designer (with the map variable) and Topic template designer (with the topic variable).

It corresponds to the Send feedback about one of a map's topics web service.

Example

The following example sends Great work! about the currently open topic.

async function sendFeedbackAboutTopic() {
    try {
        await topic.sendFeedback("Great work!");
        console.log("Feedback sent successfully!");
    } catch (error) {
        console.error("Error while sending feedback:", error);
    }
}

// Call the function to send feedback about the topic
sendFeedbackAboutTopic();