0

Evening All.

I have a scenario with a custom form with a main record, and a sublist of items.

I have various criteria etc... which disable or enable some of the fields in the sublist on the fly. One problem I have is when field #4 for example is filled, it then enables fields #5 - #7. Generally I tab through fields, and since Field #8 is always enabled, after i fill #4, then tab, 5-7 become enabled, but the cursor is already at #8 and I have to back-tab to fields 5-7...

I have tried:

document.getElementById('custrecordcpsi_price1').focus()

But it doesnt work... is there another method to push the cursor to a particular active sublist field?

Thanks is advance.

Steve Reeder
  • 980
  • 16
  • 42
  • Try adding `setTimeout` or else bind an `onfocus` event listener on default focus field. P.S. DOM scripting can break anytime with future releases. – prasun Dec 08 '15 at 11:54

1 Answers1

1

Unfortunately, NetSuite doesn't have an API that will set the focus on a field or sublist field/column. Please be advised that DOM scripting is not supported by NetSuite's SuiteScript.

vVinceth
  • 905
  • 5
  • 7