Jesper M
07/12/2023, 10:39 PMbattk
07/12/2023, 11:02 PMec
07/12/2023, 11:03 PMlet stateTxt = 'Yes';
line 20 let errState = scriptContext.newRecord.getValue({ fieldId: 'custbody_status' }) == 2;
line 23 let bgColor = NsLabelColor.GREEN;
Around line 25, add stateTxt = 'No';
The rest should stay the same. This isn’t exactly what you stipulated; it assumes Yes/GREEN for every status other than 2. You may add if statements for status == 1…battk
07/12/2023, 11:23 PMec
07/13/2023, 12:57 PMJesper M
07/13/2023, 1:04 PMbattk
07/13/2023, 9:46 PMbattk
07/13/2023, 9:47 PMbattk
07/13/2023, 9:47 PMJono
07/13/2023, 11:16 PMec
07/13/2023, 11:25 PM