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

Scripting defaults error userInputStartTime

Topic Labels: Extensions
308 3
Showing results for 
Search instead for 
Did you mean: 

Using Scripting app to set default values.

I set a default value and click Done I get the error,
j: userInputStartTime
at start on line 352

No matter which field I set I receive the error. Is there a webpage that shows the steps to a solution? I see others have experienced the same issue but have not found a solution.


3 Replies 3

What script are you using? It is almost impossible to diagnose scripting issues without seeing the actual code.

Yup, though this does happen to be a pretty specific error that as far as I know, only pops up for a couple of unhandled promise rejections concerning built-in input methods.

Only easy way to reproduce it that comes to mind:

await input.recordAsync('',base.getTable(cursor.activeTableId))

Click the ‘select a record button’, then click anywhere outside of the pop-up area.

Every other scenario I encountered is super-convoluted, so either something is seriously wrong with the code or something is seriously wrong with the code because the built-in input methods are all asynchronous and React is pretty capable at handling all but the craziest of edge cases… well, plus the aforementioned one.

Image of error

App: Scripting
To activate: Run → Configure Defaults → “table name” → Grid view → Date

I set Date to now
I click “Next”
I make no other changes
I click Done

Error message:
j: userInputStartTime
at start on line 352

Scripting code looks for 'now" for today’s date (line 141 and 142):
}else if(type === ‘date’ || type === ‘dateTime’){
value = value.trim().toLowerCase() === ‘now’ ? new Date().toISOString() : value