function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IZavalunIZavalun 

S-Control that works with “CANCEL” button in Detail Edit View.

I am programmatically creating the event and open it in the ‘EDIT’ view.

Since the event is already created the “CANCEL” button not going to delete it..

Can I write the S-Control that will work with the “CANCEL” button in the “EDIT” view?

If not then what would be the best approach?

sfdcfoxsfdcfox
You can't override the Cancel button, so you may want to consider dropping them on a new task/event page instead of saving the record and then bringing up edit mode.

~ sfdcfox ~