JavaScript onCreate Functions


The onCreate functions include the following:
fieldsOnDefault. Defines the fields that you want to set. Values can either be read directly from a parent object and inserted in the child, or you can run a conditional query to determine the value to be set.
getDefaultValueOfMEFIELDNAME. Sets a value in the field specified by MEFIELDNAME. If running a conditional query to determine the value to write to the field, then the conditional query must also be entered using the getDefaultValueOfMEFIELDNAME function.
onCreateJSON. Prompts the user with a warning or question before creating a record.