Skip to content
Discussion options

You must be logged in to vote

You're not doing anything obviously wrong—your setup should work if the relation points to a JS Backend script and the note's content is actually being changed. However, the output of api.log is only visible in the UI log panel when you run the script manually; it won't show up for event-triggered scripts like those run via ~runOnNoteContentChange unless you check the backend logs (docs).

For a more visible way to verify the trigger, use a side effect like creating a new note with api.createTextNote or modifying an attribute. For example:

api.createTextNote(api.currentNote.noteId, "Triggered!", "runOnNoteContentChange fired");

This will create a child note every time the event fires, mak…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dosubot
Comment options

Answer selected by bergercookie
@bergercookie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant