Help

Re: Workaround for lack of pre-filled default text using input.textAsync?

330 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Samir_Ghosh
6 - Interface Innovator
6 - Interface Innovator

Unfortunately input.textAsync does not allow a default value. 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).

1 Reply 1

I have two main ways of dealing with this.

  • I start by using a button field with one button per common value, and a final button that lets the user enter a custom value. I only show input.textAsync() if the user selects the button to enter a custom value.

  • I preface the input call by instructing the user to type a single space to indicate “no value”.