The entire error is;
TypeError: Cannot read property ‘length’ of undefined at main on line 40.
Line 40 reads;
let recToCreate = s.delivField.options?.choices.length;
OK, so “s” was defined at the top of the script as input config, and “delivField” i...