Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

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

152 1
cancel
Showing results for 
Search instead for 
Did you mean: 

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