karlenigma
var currentRecord = scriptContext.currentRecord; var period = currentRecord.getValue({fieldId:'custpage_period'});