<@U658H85S9> thanks, that's working for me, using ...
# suitescript
d
@PabloZ thanks, that's working for me, using SS2.0:
Copy code
/**
 *@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"
                });
            }        }    }});