Partager via


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

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

Comments

  • Anonymous
    August 04, 2008
    PingBack from http://blog.a-foton.ru/2008/08/changing-the-window-size-for-crm-forms/

  • Anonymous
    August 04, 2008
    Recently a customer asked me how to open the Accounts form in a larger window.  It's a simple

  • Anonymous
    August 04, 2008
    Recently a customer asked me how to open the Accounts form in a larger window.  It's a simple

  • Anonymous
    December 02, 2013
    Code disables save buttons in above environment. Is there an alternative?