locked
Dynamics 365: Prevent execution of "Save & close" on Phonecall entity (in Javascript)? RRS feed

  • Question

  • Hi,

    I want to be able to stop the form from closing when the user clicks "Save & Close" in the PhoneCall-entity.
    I have tried this code, but this only prevent saving (the form still closes):

    ctx.getEventArgs().preventDefault();

    return false;

    Anyone have an idea?

    Regards,

    Marius H. Enerud

    Thursday, March 9, 2017 11:54 AM

All replies

  • It is better to use ribbon customization to hide "save and close" button. User will only use save button.

    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Friday, March 10, 2017 5:40 AM
  • Refer this:

    https://social.microsoft.com/Forums/en-US/16c380c9-7918-43a2-998e-159102c4eafc/formcontextgeteventargspreventdefault-does-not-work-on-save-and-close-event?forum=crmdevelopment


    Regards, Saad

    Friday, March 10, 2017 8:05 AM