A better technique would be to use an app.response (like a javascript response) where you can control what the user sees then getting that result and appending it to the desired field.
It would look something like this:
var myVar = app.response("Enter in some text: ", "This is the Title of the box.", "Default answer", false, "This is the label");
this.rawValue = this.rawValue + myVar
The true/false value in th e2nd last parameter indicates whether you want **** to appear instead of what is typed (like a password).
Let me know if you find this better.