Changing the window size for CRM forms

Recently a customer asked me how to open the Accounts form in a larger window.  It's a simple matter of a little bit of JavaScript that I was lucky enough to locate the answer in Ronald Lemmen's blog.

  • Navigate to the main Account form as follows:
    • Settings > Customization > Customize Entities > Account > Forms and Views > Form > Form Properties
  • On the Events tab make sure that OnLoad is highlighted, then click Edit.  Paste the following code and make sure that the box for Event is enabled is checked.

//resize window to full screen upon opening Account form

window.moveTo(0,0);

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

  • (Below is the screenshot of what this should look like.)
  • Save and close the form, then Publish the entity.

clip_image001

--------------------------------