SMNCP
06/05/2020, 12:04 PMfunction beforeLoad(context)
{
var formObj = context.form;
var field = formObj.addField({
id : 'custpage_so_test',
type : serverWidget.FieldType.CURRENCY,
label : 'SO Calc'
});
}
function beforeSubmit(context)
{
var soRec = context.newRecord;
var soCalc= 5+10;
soRec.setValue({fieldId:'custpage_so_test',value:soCalc});
}
NElliott
06/05/2020, 12:54 PM