Tuesday, October 26, 2010

MSCRM: Opening CRM Forms in a Larger Window

Recently a customer asked me how to open the Accounts form in a larger window. Adding some simple JavaScript will do the trick.
1. Go to Settings, Customization.
2. Customize Entities and Choose the Account Form.
3. Choose Forms and Views, Form, and Form Properties.
4. On the Events tab, make sure that OnLoad is highlighted, then click Edit.
5. Paste the following code and make sure that the box for Event is Enabled is checked:

//resize window to full screen upon opening Account forms
window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);

6. Save and close the form and publish the entity.

6 comments:

xrmWiz said...

Any idea why CRM2011 forms seems to ignore the window.resizeTo ?

my code:

alert(1);
window.moveTo(0,0);
window.resizeTo(1024,768);
alert(2);

shows both alerts, but window size does not change...

jeff said...

Not sure if you got the answer but your code needs to be changed for CRM 2011 to

window.top.moveTo(0,0);
window.top.resizeTo(1024,768);

Your code did not work for me either but adding the top did the trick.

Zheng junxai5 said...


zhengjx20160623
adidas superstar trainers
oakley sunglasses wholesale
pandora jewelry
lebron james shoes 13
tiffany and co
nike air force 1 white
kd 8
ralph lauren polo
coach factory outlet online
michael kors outlet
coach outlet
air max
fitflop shoes
fitflop shoes
michael kors outlet
retro 11
cheap toms shoes
christian louboutin wedges
marc jacobs outlet
replica rolex watches
michael kors outlet clearance
oakley outlet
oakley sunglasses wholesale
coach factory outlet
cheap jordans
coach outlet store
louis vuitton purses
louis vuitton handbags
polo ralph lauren
air jordan shoes
oakley vault
ralph lauren outlet
louboutin shoes
cheap oakleys
vans outlet
oakley sunglasses
oakley vault
nike air max uk
ray ban sunglasses

Zheng junxai5 said...

zhengjx20160623
jordan retro 8
louis vuitton outlet
gucci outlet online
cheap toms
ralph lauren outlet
basketball shoes
kids lebron shoes
toms shoes
michael kors purses
cheap toms
ray bans
replica watches
nike trainers women
michael kors outlet
gucci belts
true religion jeans
louis vuitton purses
coach outlet store online clearances
gucci handbags
true religion outlet store
jordan 3 retro
michael kors
coach outlet
true religion jeans
true religion outlet
air jordan 8
lebron 13
coach outlet clearance
coach outlet
nike blazers shoes
nike roshe run mens
nike sb dunks
pandora charms
louis vuitton outlet
michael kors outlet
coach outlet
cheap oakley sunglasses
louis vuitton outlet stores
louis vuitton handbags
tods sale

Hua Cai said...

louis vuitton sunglasses for women
coach outlet online
mont blanc pens
coach outlet store
nfl jersey wholesale
mulberry bags
fitflops outlet
thomas sabo uk
swarovski outlet
cheap oakley sunglasses
coach outlet store
puma shoes
nike air max 90
ralph lauren shirts
true religion uk outlet
michael kors outlet
michael kors handbags outlet
true religion jeans
tiffany and co
gucci sunglasses
toms outlet store
coach outlet
ralph lauren outlet
michael kors outlet uk
nfl jerseys wholesale
ralph lauren outlet
michael kors bags
michael kors factory store
ralph lauren outlet
calvin klein underwear
ferragamo shoes
air max 90
juicy couture tracksuit
beats headphones
michael kors handbags outlet
20160716caihuali

Fangyaya said...

red bottom shoes
louis vuitton purses
polo ralph lauren
louis vuitton
ray bans
louis vuitton handbags
cheap pandora jewelry
jordans for sale
coach outlet
coach outlet
ray ban sunglasses
ugg boots
coach outlet online
cheap basketball shoes
adidas originals store
moncler pas cher
retro 11
ray ban outlet
ugg boots
ugg boots
lebron 12
coach outlet canada
louis vuitton bags
nike roshe run
tommy hilfiger outlet
celine bags
ugg boots
oakley outlet
air max 95
michael kors outlet clearance
insanity workout
uggs for women
coach outlet store online
toms wedges
coach factory outlet online
jordan 6s
nike roshe flyknit
michael kors outlet online
coach factory outlet
cheap toms
20168.13chenjinyan