locked
CRM 2013 OnSave function called for F5 RRS feed

  • Question

  • Does anyone know why when I press F5 to refresh a form, the OnSave function is called?

    I have an  OnSave function connected to the Account form. I have autosave turned off. There is code attached to the OnSave form that should not be called unless the Save button is clicked by the user. Sometimes, our users need to refresh the form to reload iFrame data. 

    When the user refreshes the form, it calles the OnSave function. Is there a way I can prevent this? Or trap the non-saving execution context?

    Tuesday, September 23, 2014 3:53 PM

All replies

  • hello,

    on save function will be called when you navigate away from page. But the save does not happen. I mean the posting of data to server.

    regards,

    Jithesh

    Wednesday, September 24, 2014 1:23 AM
  • Please check whether on save function is being called from onLoad of form or on any event of Iframe/grids?

    Regards Faisal

    Wednesday, September 24, 2014 9:35 AM