Skip to main content

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


Forum|alt.badge.img+2

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

Forum|alt.badge.img+19
  • Inspiring
  • 351 replies
  • February 24, 2020

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…


Forum|alt.badge.img+2
  • Author
  • Known Participant
  • 13 replies
  • February 25, 2020
openside wrote:

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


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


kuovonne
Forum|alt.badge.img+27
  • Brainy
  • 6001 replies
  • June 26, 2022

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.


Reply