I’m trying to create a trigger when a new comment is posted in Wix Comments widget.
This is the code in the wix comments widget page (Frontend):
$w("#wixComments1").onCommentCreate((widgetComment) => {
// Log the newly created comment to the console
console.log("New comment created:", widgetComment);
// You can add additional logic here to process the comment
});
The Wix IDE throws this error: “Property ‘onCommentCreate’ does not exist on type ‘IFrame’.ts(2339)”
Can anyone help me on this, i’m new to Velo…