i have a user event script that add a button to tr...
# suitescript
s
i have a user event script that add a button to transfer order , and attached scipt which sends https request to exteranl api . how can remove the button if the api returns 500 ?
Copy code
context.form.clientScriptModulePath = "./wfsAPI.js";
      context.form.addButton({
        id: "custpage_walamrt",
        label: "Update Walmart Qty",
        functionName: "updatewalmart()",
      });
b
nothing suitescript would do it
s
it doesnt seem to be working
b
you can use dom manipulation via things like changing the display style
s
the attached script is just save in fail cabinet does it need to be a script record ?
b
no