```define(['N/currentRecord', 'N/record', 'N/ui/di...
# suitescript
k
Copy code
define(['N/currentRecord', 'N/record', 'N/ui/dialog', 'N/ui/message', 'N/ui/serverWidget', 'N/log'],
    /**
 * @param{currentRecord} currentRecord
 * @param{record} record
 * @param{dialog} dialog
 * @param{message} message
 * @param{serverWidget} serverWidget
 */
    (currentRecord, record, dialog, message, serverWidget, log) => {
        /**
         * Defines the function definition that is executed before record is loaded.
         * @param {Object} scriptContext
         * @param {Record} scriptContext.newRecord - New record
         * @param {string} scriptContext.type - Trigger type; use values from the context.UserEventType enum
         * @param {Form} scriptContext.form - Current form
         * @param {ServletRequest} scriptContext.request - HTTP request information sent from the browser for a client action only.
         * @since 2015.2
         */
        const beforeLoad = (scriptContext) => {

          log.debug({title: "Before Load", details: "Before Load Event"})
       
        
          

        }
e
N/currentRecord is for client scripts
k
I removed ''N/currentRecord', 'N/record', 'N/ui/dialog', 'N/ui/message',
I am still getting the same error message
e
Is that your complete script? You're not returning an entry point if it is
this 1
k
Also looks like you're missing some closing braces
y
I'm sure you missed * Just make line number 10th as /* and try it. Only one time use can use /* for defining script type and version inside script.