Access system commands like prompt & suggester in JS

Things I have tried

What I’m trying to do

Hi community,
I am writing a JS script and would like to take user input in the form of a prompt and/or a suggester dialogue box. I cannot seem to find the way to call those. How is that achieved? Is there documentation that i may have missed that would point me towards the correct syntax?
I know that scripts within Templater allow for it (tp.system.prompt) but i am not sure about how to call this within a dataviewjs block for instance.
Many thanks in advance

I know this is a couple weeks old, but maybe it will help somebody in the future.

It works for me like this:

On creation:

The ‘await’ keyword means it is to wait until the user has finished inputting.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.