Applab Prompt issues

When I run this code:
onEvent(“start”, “click”, function(event) {
var name = prompt(“name”);
setText(“id”, name);
var food = prompt(“fav food”);
setText(“id”, name + food);
});

I want it to prompt, show text, then prompt, but it goes prompt,prompt text. Any ideas?

This is a known bug so for now at least the program won’t run as you’re attempting when using prompt(). Our engineers are aware of the issues with how that command runs but I can’t speak to when it’s prioritized to be fixed. Sorry not to have a better answer but wanted to make sure you didn’t think you were doing something wrong.

Any updates on where this is in the engineering queue? I had a student with the same issue this week… I was glad this was on the forum so I could find that it was a known bug. Is there any chance this could be added to the “prompt” documentation in the mean time?

While I don’t manage that backlog I still think this is fairly low on the queue. I’m going to look into adding something to the documentation in the meantime.