locked
CRM2011: How can change the tab order to left to right RRS feed

  • Question

  • In crm 2011 by default tab order is top to bottom in sections I want it to be left to right In crm 4.0 this could be achieved using property called tabIndex on attributes How can we achieve same in CRM 2011?
    Tuesday, May 10, 2011 4:01 AM

All replies

  • Hi,

    you can achieve it in same way as in CRM 4 :

       for( var i = 0 ; i < crmForm.all.length ; i++ )       
        {
            if( crmForm.all[ i ].tabIndex )            
            crmForm.all[ i ].tabIndex = 1000 + (i*10);   
        }

    It worked for me.

    Thank you.

    JayshriP

    • Proposed as answer by Naresh Kitey Tuesday, May 10, 2011 6:11 AM
    Tuesday, May 10, 2011 5:11 AM
  • Thanks for the reply Jayshri I am using CRM 2011 online version are you using the same or different? If same then what special care I need to take?
    Tuesday, May 10, 2011 7:02 AM
  • Thanks for the reply Jayshri I am using CRM 2011 online version are you using the same or different? If same then what special care I need to take?


    No, I am working on On-premise version.

    Thank you.

    JayshriP

    Wednesday, May 11, 2011 4:32 AM
  • Hi Krishnakant,

    function TabOrderLefttoRight() { for (var i = 0; i < crmForm.all.length; i++) { var element = crmForm.all[i]; if (element.tabIndex && element.tabIndex != "0") { if (element.className == 'ms-crm-Hidden-NoBehavior') continue; if (element.tagName == 'A') { if (element.className != 'ms-crm-InlineTabHeaderText') continue; } element.tabIndex = 10000 + (i * 10); } } }

    mark as Answer if it has helped :)

    Friday, March 22, 2013 10:23 AM
  • After RollUP12.????

    NO -->crmForm.all.length


    Fast Low Cost Online .Net IC Tecnologic

    Tuesday, August 20, 2013 9:03 AM
  • Loop through the form controls using Xrm.Page.ui.controls.get or Xrm.Page.ui.controls.forEach. See http://msdn.microsoft.com/en-us/library/gg309324.aspx.
    Tuesday, August 20, 2013 9:23 AM
  • Hi MJFPalmer,

    Could you expand on the solution you're proposing here?  I'm no jscripting pro, and I can't find any sample code for this anywhere.

    The only solutions I can seem to find are the unsupported method, or people suggesting that I lay out my fields in multiple sections that consist of only 1 row (that would take me FOREVER to customize!).

    Any help with this would be greatly appreciated.

    -L

    Wednesday, January 8, 2014 2:00 AM