Contact Us Now - Call us on

Microsoft Dynamics CRM

xRM

Resources

About Us

Find Us

 

Gap Consulting Microsoft Dynamics CRM Blog

Maximise a form in Microsoft CRM2011

The following was a handy piece of jscript commonly used in CRMv4.0 and CRMv3.0 to maximise a form to use the entire screen;

window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);

However, in Microsoft CRM2011, this has changed slightly and you must add ‘.top’ to your jscript web resource:

window.top.moveTo(0,0);
window.top.resizeTo(screen.availWidth, screen.availHeight);

This can really help the end user reduce the number of mouse clicks and gives the maximum amount of screen real estate from a system customiser perspective. 

Print | posted on Wednesday, January 05, 2011 1:25 PM |

Feedback

# re: Maximise a form in Microsoft CRM2011

Many thanks for this!

Why this isn't top of the goggle index for "CRM 2011 resizeTo" is beyond me, this is the only post I could find that explains the variation between 4.0 and 2011 when calling the resizeTo method.

Again, many thanks - you've saved me from pulling my hair out.

Craig
4/18/2011 12:04 PM | Craig Hamer

# re: Maximise a form in Microsoft CRM2011

I found this blog post from a link you had posted on a forum discussion of this issue, and in that forum it was mentioned that this will work through the web client but not if the form is opened from Outlook. Did you ever find a resolution to get the script to resize the window from Outlook as well?

Thanks!
5/31/2011 10:17 PM | Merlin

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 5 and type the answer here: