I think not, but maintained uncertainty so someone that knows can inform me (whether text type here absolutely means type string, & even if so whether some syntax can make it act like other types). Anyway this was AI’s code that just gave many options. I’m most concerned with type text (as the only other types available in for custom field types are number, date & url)
To simplify I tried all the following variations that don’t give red underlines. But they either completely replaces or gives ‘undefined+ “the new value”’.
let updatedValue = currentValue + newCustomFieldValue;
let updatedValue = currentValue
? `${currentValue}, ${newCustomFieldValue}`
: newCustomFieldValue;
let updatedValue = `${currentValue}, ${newCustomFieldValue}`;
How can I properly append?