How to make a field Focused on Netsuite

Through client script, we can make one field focused.

What is making field focused?

We will set the cursor on that field by default when the page is loaded.

Code that can be used to set the field as a focused field

document.getElementById(“custpage_barcodeid”).focus();

Use the NetSuite field id in this code to make it as focused. In the Client script we can put this code in the pageInit to do it on page loading.

Leave a comment

Your email address will not be published. Required fields are marked *