Hi all, I have created a user event script to incl...
# suitescript
r
Hi all, I have created a user event script to include a select field in sublist by
Copy code
sublistOnTimesheetRec.addField({
        id: "custpage_subproject",
        type: serverWidget.FieldType.SELECT,
        label: "Sub Project"
      });
also I am setting value in client script
Copy code
currentRec.setCurrentSublistValue({
                    sublistId: "timeitem",
                    fieldId: "custpage_subproject",
                    value: subProjectValue,
                 });
            // }
            
            currentRec.commitLine({
                sublistId: 'timeitem'
            });

            log.debug({
                title: 'subProjectValue 2',
                details: subProjectValue
            })
I am getting debug "subProjectValue " as the value i have set but the value doesn't set on the field after saving?