You need to sign in to do that
Don't have an account?
MattMet86
New Record Screen - class or trigger when user clicks "New"
Is there a way to run a trigger or class when a user clicks the New record button?
For example, I want a bit of code to run when the user clicks the New Account button. This way I can show them an alert or other message before they put an details in for the new record and click Save which fires an existing trigger.
I need osmething like "onload Insert"...
For example, I want a bit of code to run when the user clicks the New Account button. This way I can show them an alert or other message before they put an details in for the new record and click Save which fires an existing trigger.
I need osmething like "onload Insert"...
The apex trigger is firee, when you perform any dml operation on the specific object.
Thanks,
Vijay
Triggers will execute when a button click issues any DML operation.
If you would like to execute an Apex code as well, you gotta add an action attribute to the apex:page tag, and call a method from there via controller.
window.location.href = '/001/e'; takes me to Account.
I need to go to the record create screen for Employee_Session__c