raghav
09/22/2023, 5:27 AMprojectPromotionField = form.addField({
id: 'custpage_project_promotion',
type: serverWidget.FieldType.SELECT,
label: 'Promotion'
})
Also setting the default Value of this field in the same beforeLoad
projectPromotionField.defaultValue = 'xyz'
Now if I am changing this field value.
In afterSubmit I am able to fetch from the newRecord but not the oldRecord
promotion = context.newRecord.getValue('custpage_project_promotion')
But this is always coming empty
oldPromotion = context.oldRecord.getValue('custpage_project_promotion')
Any specific reason why field is not available in context,oldRecord?CD
09/22/2023, 5:34 AMbt
09/22/2023, 9:01 AMZoran R-DATAGRAM
09/23/2023, 5:06 AMraghav
09/23/2023, 7:26 AMraghav
09/23/2023, 7:28 AMZoran R-DATAGRAM
09/23/2023, 8:37 AMraghav
09/24/2023, 1:37 AM