locked
close appointment button + Appointment entity RRS feed

  • Question

  • Hi All,

    I am using crm 2011 on-premies.

    when I click on close appointment ,popup will appear with two options "completed" and "canceled".

    When i select "completed" and click on "OK" button, I want to call a JS function.

    Can anyone please advice to proceed further.

    Tuesday, May 14, 2013 8:01 PM

Answers

  • You won't be able to override the functionality there and insert a call to another script in a supported manner. But you might consider a slightly different approach. Hide the existing button and add custom buttons to the ribbon in its place - one for Close Complete and the other for Cancelled. With this set up you can specify JavaScript that runs when the button is clicked - you can add a call to your additional code and then also use some script to close the appointment.

    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Wednesday, May 15, 2013 2:01 AM
    Moderator