-
NetSuite Tip - Hide a button using jQuery
function beforeLoad(scriptContext) { let form = scriptContext.form; // Create an inline HTML field to inject the script let inlineHtmlField = form.addField({ id: 'custpage_inlinehtml', type: serverWidget.FieldType.INLINEHTML, label: 'Inline HTML' }); // Script to hide the row using jQuery let script =…
-
NetSuite Admin Tip | SuiteScript > Resolve Error: TypeError “$” is not a function
SuiteScript developers transitioning from standard JavaScript may encounter a common error when using the traditional jQuery syntax. This TypeError occurs when the dollar sign symbol ($) is used instead ofjQuery() in NetSuite’s SuiteScript. To resolve this, simply replace the dollar sign ($) with jQuery() in your code.…
-
How to remove bx-wrapper embedded style from related items?
Hello everyone, I need to remove the embed style on the related items bx-wrapper div. I expanded our PDP page to 100% width, and the embedded width is 1140px. <div class="bx-wrapper" style="max-width: 1140px;"> I tried looking for that class in my theme folders, but I kept running into collection views. Nothing contained…
-
SMT Jquery
My company was having an issue with the fedex URL format. It looks like fedex updated their format but in the TrackingServices.TS file the link is hard coded. Someone gave me the idea to update the url using JQUERY. It works on the main Order list page. But once we go into an actual order details page and try to click on…