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
AlexYAlexY 

Is it possible to automatically invoke an s-control or custom link when a record is saved?

I have created a custom link on my Opportunity page that returns the value from the "Department" field from the User object when it is invoked.
 
Is it possible that this custom link (or s-control if need be) could be automatically invoked when a user saves the opportunity record?
 
DevAngelDevAngel
Unfortunately, no you can't do this.  We don't provide an event that you can capture at that stage.  Apex code will allow you to hook into the save event (create or update trigger).
Carl_V1Carl_V1

Question: if I went down path of routing a user to a duplcate page stored in an S-Control in order to put some custom code under the 'Save' button, where in the page html would I place this?  Im not strong on HTML so any advice about where I could put some javascript prior to normal 'save' being executed would be most appreciated.

Regards,

Carl_V

VinHVinH
Hello,
 
Can anyone tell me when the new Apex code (triggers, etc.) will be available for production use?
 
- thanx
V