Generic Function to Collapse/Expand Sublist Fields with Dynamic Button Label in Suitelet Using JQuery

Overview: This generic JavaScript function enables the collapsing and expanding of sublist columns on a Suitelet page. It dynamically changes the button label between “Expand” and “Collapse” based on the visibility of the sublist columns. This function can be reused and customized according to the specific field and button identifiers used on different Suitelet pages.… Continue reading Generic Function to Collapse/Expand Sublist Fields with Dynamic Button Label in Suitelet Using JQuery

Custom Button Action for Generating Deposit Summary Client and Suitelet Scripts

The Client Script used for generating the PDF: /**  * @NApiVersion 2.1  * @NScriptType ClientScript  * @NModuleScope SameAccount  */ /***********************************************************************************************************  * Chesapeake Coffee Roasters-USA-NS/SCA  * CCRUN-8 Custom Print Button for Bank Deposit Summary with Advanced PDF/HTML Template  *****************************************************************************************  * Author : Jobin & Jismi  * Date Created : 15-October-2024  * Description : This Client script… Continue reading Custom Button Action for Generating Deposit Summary Client and Suitelet Scripts

Add Custom Action to “Save &” Drop-Down on a Record

Scenario: Add a custom workflow button to the Save & update menu on a transaction. The steps below will aid in saving efficiency when users consistently save a record and immediately click another button to trigger an action. This allows custom button actions to be available under the Save &… menu on a record. Note:… Continue reading Add Custom Action to “Save &” Drop-Down on a Record

WMS Button Action

You can set up mobile actions for events associated with page or page elements. Both pages and page elements have on load events. Button, icon, and table elements have additional events for clicking or tapping. Field elements have events for selection, scanning, and validation. The action types available for events on page and page elements… Continue reading WMS Button Action

How to create show more and show less functionality for hiding text using jQuery

We can add Read More/Read Less button next to a too long HTML element by using jQuery.The amount of content displayed can be changed by clicking on the buttons. Instead of showing a complete paragraph on a webpage, only some part of the text is shown initially and a button is added which shows more… Continue reading How to create show more and show less functionality for hiding text using jQuery

Update Bulk item price on a button click

Requirement : On button click from sales order/estimate we can have a pop up listing all items with a checkbox and a field to enter the price level.When the user selects items and enter the price for it, upon submit, the selected items will get updated with the new price added. Solution 1: Created the… Continue reading Update Bulk item price on a button click

Error Messsage on Button Click

Scenario: On button click,a field value need to be validate.If value is not set in the field then error message need to be displayed.And the further button action need to be prevented in Client script. Solution: Use ‘N/ui/message’ module Code snippet: function in client script called on button action: // Defining the function called in… Continue reading Error Messsage on Button Click