Getting message like Are you sure you want to navigate from the page... in MS CRM 4.0
-
Friday, 3 August, 2012 6:01 PM
Hi,
I am getting the below message As soon as I open the record and close without doing any modification in MS CRM 4.0.
'Are you sure you want to navigate away from this page?' and then 'Press OK to continue, or Cancel to stay on the Current page.' Why it is coming ?
Any help greatly appriciated!!!
Thanks,
Srikanth Reddy
All Replies
-
Friday, 3 August, 2012 6:29 PMthere are probably some scripts running in the onload events
-
Friday, 3 August, 2012 7:26 PM
Thanks for your response, In which case this error will come
-
Saturday, 4 August, 2012 7:57 PMModerator
Thanks for your response, In which case this error will come
This is not an error but notification window.
This window appears when one of field's value was changed - marked as dirty. Do you have any scripts that run during load of form?
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed As Answer by Andrii ButenkoMVP, Moderator Monday, 6 August, 2012 2:59 PM
- Marked As Answer by Andrii ButenkoMVP, Moderator Tuesday, 7 August, 2012 4:08 AM
-
Monday, 6 August, 2012 2:42 PMAndrill, I am changing the values using ForceSubmit in the OnLoad of the form, is this is the problem for populating the window ?
-
Monday, 6 August, 2012 2:47 PMModerator
Yes,
ForceSubmit marks form as dirty and after this this message appears. In case you don't want this window to appear add following code to your OnLoad event handler:
crmForm.detachCloseAlert();
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed As Answer by Andrii ButenkoMVP, Moderator Monday, 6 August, 2012 2:59 PM
- Marked As Answer by Andrii ButenkoMVP, Moderator Tuesday, 7 August, 2012 4:08 AM
-
Monday, 6 August, 2012 2:58 PMThanks a lot Andrill! I have used crmForm.detachCloseAlert(); statement in the OnLoad of the form, Now it's working fine! -:)