Help

Re: Input.textAsync method: Cannot enter an empty value - Bug?

1031 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Bruce_Halliburt
6 - Interface Innovator
6 - Interface Innovator

I’m using the following to capture an email address:

email = await input.textAsync(‘Please enter email’);

I want the input to be optional, but the “Next” button only becomes enabled when you type something in -the field. Is there a way to make the field non-mandatory or is this a bug?

4 Replies 4
openside
10 - Mercury
10 - Mercury

If you’re familiar with how Promises work in javascript, there is a workaround for this (although not perfect). I’m going to publish an example later today that uses this workaround. Stay tuned…

Fab! (I’m more of a c# /c++ programmer with limited javascript knowledge!)

Funtik_Vezyot
4 - Data Explorer
4 - Data Explorer

Could you please show this workaround? I’m not very friendly with js (also c++ programmer) but I will do my best to learn js for working with airtable

Welcome to the Airtable community!

A quick and dirty workaround is to have the user enter a single space if they don’t want to answer. Then have your code take it from there.