Pre-fill text field from input.textAsync with default string

In scripting block, when calling

input.textAsync("Your Name")

it would be convenient to have an optional second argument to provide a default value in the text field:

input.textAsync("Your Name", "Jane Doe")
3 Likes

Anyone have a workaround for this? E.g., You can code a default value if user enters nothing, BUT…there’s no way to enter nothing (i.e., requires user to enter a value before proceeding).

You can put any letter or space, then delete it via backspace and “Next” button will remain active

In my script, I prompt the user to enter 0 in the place of nothing. It’s not elegant, but it gets the job done.