dbaghdanov
10/04/2017, 10:15 PM/**
*@NApiVersion 2.x
*@NScriptType UserEventScript
*/
define(["./customModule"], function (custom) {
return {
beforeLoad: function (scriptContext) {
if (scriptContext.type == scriptContext.UserEventType.VIEW) {
scriptContext.form.addButton({
id: "custpage_my_custom_button",
label: "Amazing Button!",
functionName: "custom.action"
});
} } }});