Sunday, March 3, 2013

Auto Collapse Ribbon in form MS CRM 2011 (UNSUPPORTED)

sometimes we need to ribbon to be automatically collapsed, as we may need the user to see more info when the form is loading. also if we have the header containing more info then the info in the form will be less, so we can collapse the ribbon automatically.
less info showing in the form...

just add the below lone of code in the onload of the form.


the above line of code, just gets the object of the ribbon and force the "Click" event automatically...

after auto hide...

btw, this is 'UNSUPPORTED' way.


1 comment: