leo_ns
01/26/2024, 7:01 PMvar myfield= result.getText({ name: 'myfield' }) || '';
if there's a single space is ok. what do you guys use?Nathan L
01/26/2024, 7:15 PMvar myfield= result.getText({ name: 'myfield' }) || null;
I think that's what i've used in the past, but now im doubting myselfleo_ns
01/26/2024, 7:16 PMNathan L
01/26/2024, 7:18 PMmyField && sublist.setSublistValue({
id: 'your_sublist_id',
fieldId: 'your_field_id',
line: 0,
value: myField
});
Could also just have it skip setting the value if it doesnt exist. I think this would be the shorthand way to do itleo_ns
01/26/2024, 7:21 PMvar myfield= result.getText({ name: 'myfield' }) || null;
this works. i guess the search returns empty string, I have to convert to null.leo_ns
01/26/2024, 7:21 PMNathan L
01/26/2024, 7:21 PM