Hide or close comment added with frm.dashboard.add_comment

Hi,

I’m using a client script to add a comment with

frm.dashboard.add_comment

when a user select a field

Is there a way to remove/close the comment from the script?

I’m asking that because this is what I’m trying to do:

FieldA of type Select with Option1, Option2

When user select Option1 I add the comment, but if the user selects the Options2 I want to remove that comment.

Thanks

Hello @cbasso you can try using “dashboard.clear_comment”

Thanks, it works.