You need to sign in to do that
Don't have an account?
Sarah Robertson 4
Trigger which fires when an apex picklist isn't selected
Hi i'm trying to create a trigger which fires before a record is saved, when the mandatory field support group is not completed. It's not working any ideas where i'm going wrong ?
Thanks here 's my code :
trigger UpdateSupportGroup on Account (before insert) {
For(Account a : Trigger.new){
if ( ISPICKVAL( a.Support_Group__c, "--None--")){
a.Support_Group__c='MSP';
}
}}
Thanks here 's my code :
trigger UpdateSupportGroup on Account (before insert) {
For(Account a : Trigger.new){
if ( ISPICKVAL( a.Support_Group__c, "--None--")){
a.Support_Group__c='MSP';
}
}}
Try this Code it will work...
Thanks...