The onCreate Function in JavaScript Code

The onCreate function is called whenever a user creates a new record. Several commands are typically run to automatically populate the fields according to values that are held in the parent object. The onCreate action is typically called when a user chooses to create a new record, and when record creation is triggered from within onSave JavaScript code. For more information about the structure of JavaScript code, see "JavaScript Structure Used in Swift MEAP."