Help

This Product Ideas board is currently undergoing updates, but please continue to submit your ideas.

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

cancel
Showing results for 
Search instead for 
Did you mean: 
David_Roulin
6 - Interface Innovator
6 - Interface Innovator

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 Comments
Samir_Ghosh
7 - App Architect
7 - App Architect

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).

Alexey_Gusev
12 - Earth
12 - Earth

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

Andy_Lin1
9 - Sun
9 - Sun

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.