+ Start a Discussion
Nerv123Nerv123 

Need to display alert message

I need to display an alert message on Save, if a field value in Leads, say X is greater than 5
 
If (Lead.X>5)
{
alert("Say Hi"")
}
 
Any clues for this newbie on how to do this? No emails, no fields to update, just a message...
 
Thanks so much!
GL_NSGL_NS
Are you using S-Controls or VisualForce?
For alerts you can go for javascript.If you are using S-Controls then Validation Rules will solve your problem but in this case error message will be displayed.
In case of VisualForce Apex class and Triggers can be used.While inserting/updating a value you can have a trigger which will call a apex class to check the validation before insert or update.