Monday, February 21, 2011

Re-arange the tabindex sequence in left to right order in MSCRM

The following code will re-arange the tabindex sequence in a left to right order.

function OnCrmPageLoad()

{
     ReArangeTabIndex();
}



function ReArangeTabIndex()

{

    for( var i = 0 ; i < crmForm.all.length ; i++ )

    {

          if( crmForm.all[ i ].tabIndex )

              crmForm.all[ i ].tabIndex = 1000 + (i*10);

    }
}

No comments:

Post a Comment