1

Is there a way through workflow or suitescript to focus to a specific field when the page loads? I don't want a hack.

Thanks!

2 Answers 2

1

Unfortunately there is no way to access to the NetSuite UI using SuiteScript because it doesn't support direct access through the DOM. You need to use javascript.

0

You can use a client script to define the cursor location. In my example I use the field change but you should be able to apply the same logic to the pageinit.

function clientFieldChanged(type, name, linenum){
var nextElement = document.getElementsByName('inpt_custrecord_bathroom1_typeofbathroom');
nextElement[0].focus();
}
1
  • This does not work for me. Also, it looks like NetSuite does not support DOM so I would not want to try to script something they don't support. Thanks!
    – bluejay92
    Mar 28, 2017 at 21:29

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.