title: Moving custom tabs/subtabs around on forms
body: <p>I am having an issue trying to insert a custom tab to a specific slot. I can add the tab and populate the tab with a sublist just fine. But the tab goes to the end of all the other tabs. I want to move it to be the second tab in the row. I found insertTab(tab, nexttab) but I keep getting an error. I am not creating a new form, I am just doing a beforeload action on the sales order form. So I do not know if this is my issue or I am just using it wrong. My code is simple but here is how I am adding the tab and sublist.</p>
  
  <pre><code>    var newTab = form.addTab('custpage_newpage', 'Name of Tab');
      var newSublist = form.addSubList('custpage_newsublist', 'list','My name', 'custpage_newpage')
      newSubList.addField('customrecord','text','My Field');
  </code></pre>
  
  <p>Can I insert a tab with my above code or do I need to change something?</p>