locked
CRM 2015 Prevent Form Save (if a condition is not met) RRS feed

  • Question

  • Note: I have already disabled AutoSave

    Using Javascript, how dow i instruct the form to NOT Save if a condition is not met?

    I've tried "event.returnValue = false" and "eventObj.getEventArgs().preventDefault()" - None worked.

    Any help?

    Thanks
    Monday, December 21, 2015 6:47 AM

Answers

  • Hi,

    Did u try passing the context as first parameter from the event library?

    Regards,

    Rekha.J


    Regards, Rekha.J

    • Marked as answer by MayBu Monday, December 21, 2015 7:37 AM
    Monday, December 21, 2015 7:15 AM

All replies

  • Hi,

    Did u try passing the context as first parameter from the event library?

    Regards,

    Rekha.J


    Regards, Rekha.J

    • Marked as answer by MayBu Monday, December 21, 2015 7:37 AM
    Monday, December 21, 2015 7:15 AM
  • Hello,

    Please provide code of your onsave event handler and screenshot how you register it.


    Dynamics CRM MVP
    My blog

    Monday, December 21, 2015 7:21 AM
    Moderator
  • I did not enable this first - when i did, it worked. Thanks for your help!
    Monday, December 21, 2015 7:37 AM