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
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.