Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Drop-Down Prompts for Roll Queries

I’m using  the Detail from the wiki page for the above. Every time I use it it after it has finished it open the text chat box.  Any ideas on how to stop this .
1591526613
Oosh
Sheet Author
API Scripter
Can you post the code you're trying to use?
?{Name of Query|Label 1, value1|Label 2, value2}
1591537543
Oosh
Sheet Author
API Scripter
That looks normal: it brings up the Query box, I select an option and it sends the value to chat. What is the problem you're having? You don't want the value sent to the chat log?
Yes it posts the answer in chat , as I want , but then opens the dialog box up ready for you to type something. 
1591612771
Oosh
Sheet Author
API Scripter
So it opens the same dialogue box twice? When you use that exact code?
1591614425

Edited 1591614457
Ziechael
Forum Champion
Sheet Author
API Scripter
Are you specifically using this code or is that just the example from the wiki that yours in based on? Also, how are you using it, straight up in chat or calling it via another method that could be causing duplication? Chris said: ?{Name of Query|Label 1, value1|Label 2, value2} [edit] that'll teach me not to refresh a page I've had open for half an hour before posting lol
calling it from a macro gives me the option which i select and put answer in chat log , but then put cursor in box underneath ready to have something typed 
1591953666
Oosh
Sheet Author
API Scripter
Ohhh... you mean after you run a macro with a query, the focus moves to the chat bar and you have a blinking cursor. Why is this a problem? I guess you could use an API script to select a token, that would move the focus back onto the canvas.... but I'm not sure I understand why it's a problem.