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” is defined as an input field of “s” So AFAICS this should NOT be undefined. Any ideas? Anyone else used this script?