Katy
11/29/2021, 9:25 PMdefine(['N/record'],
function(record) {
function beforeLoad(scriptContext) {
var newRecord = scriptContext.newRecord ;
newRecord.setValue('requireddepositpercentage', '100');
}
return {
beforeLoad: beforeLoad,
};
});
Alan Fitch
11/29/2021, 9:26 PMKevin
11/29/2021, 9:38 PMAlan Fitch
11/29/2021, 9:38 PMAlan Fitch
11/29/2021, 9:39 PMKevin
11/29/2021, 9:42 PMAlan Fitch
11/29/2021, 9:43 PMSandii
11/29/2021, 9:54 PMbeforeLoad(scriptContext)
page in the help pages.
Data cannot be manipulated for records that are loaded in beforeLoad scripts. If you attempt to update a record loaded in beforeLoad, the logic is ignored.
Temitope Pinheiro
11/29/2021, 10:07 PMjen
11/29/2021, 10:09 PMTemitope Pinheiro
11/29/2021, 10:12 PMKaty
11/29/2021, 10:13 PMAlan Fitch
11/29/2021, 10:14 PMKaty
11/29/2021, 10:46 PM