Dataviewjs - My code keeps running all over again after every change in the document

Hey everyone,

I have a quick question. I might have a simple dataviewjs code, which prints something to the console. Everytime I type something somewhere in the document the code runs and in this case logs to console. Is there a way to run it only ones, lets say when I open the document? I would like to allow some user inputs in my notes using pop up windows but this makes it impossible. Thank you.

2 Likes