The onOpen Function in JavaScript Code
The onOpen function is called when a user opens a quick selector for a module. For example, the onOpen function defined for the Attendee Call module is called when a user selects the quick selector to add an Attendee Call to the parent. You can use onOpen to set field values by default in any quick selector list. Typically, fields are automatically populated with a default value, with values held in other fields, with values held in the parent object, or with values held by other parent objects. For more information about the structure of JavaScript code, see "JavaScript Structure Used in Swift MEAP."