Hey all. I have a form which has a custom button o...
# suitescript
c
Hey all. I have a form which has a custom button on it I would like to remove, but I can’t for the life of me figure out where/how it is being added to the page. Any suggestions on tracking down the source?
message has been deleted
b
normal methods to add a button include the custom form, user event scripts, and workflows
a
What form are you on? Check scripted records of the record type you're on. You could go look at the user event scripts. I'd right click on the button and inspect it. as well
c
Ah nice, it looks like inspect element shows the script source. It was a client script I deleted from the SDF project, forgetting that doesn’t also delete the script in netsuite
Actually, I take that back, it’s the same file I have in my project.
<input type="button" style="" class="rndbuttoninpt bntBgT" value="Test BUtton" id="custformbutton_customscript_prog_bill_clientscript_1" name="custformbutton_customscript_prog_bill_clientscript_1" onclick="var rConfig = JSON.parse('{}'); rConfig['context'] = '/SuiteScripts/Progress Billing/progress_billing_clientscript'; var entryPointRequire = require.config(rConfig); entryPointRequire(['/SuiteScripts/Progress Billing/progress_billing_clientscript'], function(custommodule){ custommodule.onButtonClick(); }); return false;" onmousedown="this.setAttribute('_mousedown','T'); setButtonDown(true, false, this);" onmouseup="this.setAttribute('_mousedown','F'); setButtonDown(false, false, this);" onmouseout="if(this.getAttribute('_mousedown')=='T') setButtonDown(false, false, this);" onmouseover="if(this.getAttribute('_mousedown')=='T') setButtonDown(true, false, this);" _mousedown="T">
I checked the suitescript referenced there but there is no code related to adding a button.
b
there is a reason i didnt list client script as an option, they dont normally add the button
they can be used for the onClick of the button, but wont actually add the button to the form
c
Odd. I don’t see anything under actions on the form. There is nothing in the user event script, and no workflows on this form
b
what does your form's actions look like