How to make a curved active tab in the navigation menu using JavaScript

We use the HTML list element to create the navigation menu, the CSS pseudo-elements to add an outside curve in the menu, and JavaScript is used to add an active class in the menu. With the help of the CSS border-radius property, it is very easy to make an inside curve. But while making an… Continue reading How to make a curved active tab in the navigation menu using JavaScript

How to clear the form after submitting in Javascript without using reset

The form allows us to take input from users and manipulate it at the front end or backend side of the application. Also, to provide a good user experience to the application user, we need to reset all the form data once the user submits the form. Example:  In the example below, we have created… Continue reading How to clear the form after submitting in Javascript without using reset

How to fix the issue: Uncaught RangeError

This is an error that occurs One is when you call a recursive function that does not terminate.  It may also happen if you pass a value to a function that is out of range. Many functions accept only a specific range of numbers for their input values.   For example, Number.toExponential(digits) and Number.toFixed(digits) accept digits from 0 to 100,… Continue reading How to fix the issue: Uncaught RangeError

TypeError: Cannot read property “custbody_field” of null

To find the NetSuite script that is causing the error, follow these steps: Go to Customization > Scripting > Scripted Records. Edit the record that you’re trying to troubleshoot, say for example, “Sales Order”. Look at the list of scripts deployed on the record defined by the “Deployed” checkbox. Uncheck all the scripts under “User Event Scripts” or… Continue reading TypeError: Cannot read property “custbody_field” of null

Resolve “page not found” for the commerce category

Update the Commerce Category Navigate to Commerce > Content Management > Commerce Categories Category in question: Click Edit URL Fragment: Change the valueExample: Update capitalization Click Save Update the SuiteCommerce Configuration Navigate to Setup > SuiteCommerce Advanced > Configuration Select Website: Select Site  Select Domain: Select Domain Click Configure Click Shopping Catalog  Click Facets  XXXXX: Update the Value Click Ok Click Save

Error: No such file or directory, stat ‘DeployDistribution/*’

The error happens in the terminal when deploying the theme/Extension. Method 1: In the terminal run, command nvm install 12.21.0 then run command gulp theme:deploy ( if the error appears in the theme ) gulp extension:deploy (if the error appears in the extension) Method 2: delete node-modules folder run command npm cache clean –force run command npm install run… Continue reading Error: No such file or directory, stat ‘DeployDistribution/*’