Confirmation box in record using client script

In User event: generateIrnButton(recordObj, form) {         let taxLines = recordObj.getLineCount({           sublistId: ‘taxdetails’,         });         taxLines == 0 ? form.addButton({           id: ‘custpage_generate_irn’,           label: ‘Generate IRN’,           functionName: ‘generateIrn’         }) : “”;       }, In Client script: function generateIrn() {       try {         let recId = currentRecord.get().id;         console.log(“rec”, recId);         let suiteletUrl = url.resolveScript({           scriptId: ‘customscript_jj_sl_e_inv_submission_page’,           deploymentId: ‘customdeploy_jj_sl_e_inv_submission_page’,           returnExternalUrl: false,           params: {… Continue reading Confirmation box in record using client script

Display popup window using SweetAlert

If you want to show popup in NetSuite, we can use SweetAlert – JavaScript library that replaces the ‘alert’ function with customizable and elegant modals. To use this functionality in your scripts, you need to use the library file ‘cdn.jsdelivr.net/npm/sweetalert2@10.10.1/dist/sweetalert2.all.min.js’ in the file cabinet. Load or call (sweetalert) this file into your script. sweetalert.fire({  … Continue reading Display popup window using SweetAlert

Add popup with close button in the HTML page

The following code can be used to show the popup with close button in the HTML page. HTML:  <div class=”popup-container” id=”popupContainer”>       <p id=”popupMessage”></p>       <button id=”closeButton” class=”btn btn-secondary” onclick=”hidePopup()”>Close</button>     </div> CSS:   .popup-container {     display: none;     position: fixed;     top: 50%;    … Continue reading Add popup with close button in the HTML page

Ext.Window attributes and their usages

The Ext.Window class in Ext JS has several attributes that can be used to customize its behavior and appearance. Here are some commonly used attributes and their usages: title: Specifies the title text displayed in the window’s header. It can be set using the title attribute during window instantiation or by calling the setTitle() method.… Continue reading Ext.Window attributes and their usages

Popup builder sleeknote in sitebuilder

Requirement  To use a program like popup builder where we can add website popups to our platform.  To know how we can join the above program and our website together so we can have specific pop-ups on different pages online.  Our Solution/ Documentation  For using the Sleek note program paid Sleek note account is needed. After… Continue reading Popup builder sleeknote in sitebuilder

Showing Pop Up message for items having no preview image in PDP.

This code is for an alert pop up message when there is no preview image available for a personalised item(Boulevard website, PTC) in PDP . code snippet: Note: Here the value of set Timeout function is very important, the pop will appear only after the default image is loaded, so due to rendering of image… Continue reading Showing Pop Up message for items having no preview image in PDP.