`_form_.addField({` `id: 'custpage...
# suitescript
e
_form_.addField({
id: 'custpage_information_json',
label: 'information json',
type: _serverWidget_.FieldType.LONGTEXT
}).updateDisplayType({
displayType: _serverWidget_.FieldDisplayType.HIDDEN
}).defaultValue = json;
^Where JSON is a string (tested by logging and is in fact there)
_let_ error = nlapiGetFieldValue('custpage_information_json');
console.error(error);
^I try to just log that field to the console and it shows NULL
e
I think this is the first I've seen ES6+ syntax combined with SS1.0 🙂
e
lol yeah... it works in most cases. I use SS2 to add an html field with "<script src={URLofSS1scriptFromFileCabinet}>" But I'm recognizing now the dangers of doing so.