Custom Module Creation for Button

Creation of custom module for button appearance in records.

define([],
    
    () => {
            /**
             * Description Custom button creation in records
             */
             const createCustomButton = (form,label,functionName) => {
                         form.addButton({
                             id : 'custpage_' + label,
                             label: label,
                             functionName: functionName
                         })
               
                    form.clientScriptFileId = 39399;
            }

        return {createCustomButton}

    });

Call the function in script and pass the label and functionname.

Leave a comment

Your email address will not be published. Required fields are marked *