Hi there :slightly_smiling_face:
I’m new to coding and Airtable and I need some assistance.
My script is to update a record with user input. The issue I’m running into is in line 7. The script runs but I’m assuming it is this error that stops it from actually updating the cell. I understand the error but I’m just not sure how to remedy it. I’d also like to know how to output the new_date variable within the text output line above it.


Solved
'record' parameter type in updateRecordAsync() not compatible with input.recordAsync()
Best answer by kuovonne
You are getting the squiggly red underline that says “record is possibly null” because it will be null if the user closes the record picker without selecting a record.
Your other issue is that a date field need to be set to an ISO date string. You cannot use Airtable formulas to parse the date. You need to use JavaScript to parse the date and then convert the date to an ISO string.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
