locked
Execute JavaScript code after save of form RRS feed

  • Question

  • How can I execute some Javascript code after the Case form gets saved? I know how to do it OnSave, but that is not what I want.

    Thanks

    Wednesday, March 28, 2012 5:31 PM

Answers

  • I think OnSave is the right place to put your logic, but if you try to close winodow programmatically most probably you'll get security message saying that application is trying to close window. Behavior is different for different browsers and browser versions.

    • Marked as answer by KatRiketa Wednesday, March 28, 2012 9:04 PM
    Wednesday, March 28, 2012 7:01 PM

All replies

  • You probably need look at writing a plugin for what you want. 
    Wednesday, March 28, 2012 5:46 PM
  • I just need to close the window after the case is resolved.

    I tried doing it in the end of the OnSave javascript event, but I am not sure that's the right way because I'm afraid that there are some other events that get fired by CRM so the Case will be saved the right way. 

    Wednesday, March 28, 2012 6:03 PM
  • I think OnSave is the right place to put your logic, but if you try to close winodow programmatically most probably you'll get security message saying that application is trying to close window. Behavior is different for different browsers and browser versions.

    • Marked as answer by KatRiketa Wednesday, March 28, 2012 9:04 PM
    Wednesday, March 28, 2012 7:01 PM