You need to sign in to do that
Don't have an account?
Nerv123
How to display a message based on a condition?
I have a situation wherein if a field, X in Leads has a value >= 5, then a message has to be displayed automatically, without clicking on a button or link.
This is a simple message, not an error, nor related to a field update/email.
Please help.
Thanks!
Try creating an S-Control like this, then putting it in the Lead page layout:
Format according to taste, perhaps even with a colored background.
How do I create an inline Scontrol? My very limited understanding says that Scontrols are links or buttons -- in this case, it has to be an automatic deduction when the field value is greater than 5....I hope I am making sense.
Please help!
You can place an s-control on a page layout as you can other fields. This results in it being ran every time the record is viewed. Once you add it to the page layout you will want to double-click on it and determine if you want to display the label and what height you would like to use. There are a couple solutions on the boards that will allow it to determine the height it needs automatically but if you are only displaying a specific message it isn't something that you should need to use.
Chris and John,
Thanks So Much!
I learnt something new today and it works!!!
BUT, the minute I add another condition to the if clause it does not work, like
<script>
if
AND(({!Lead.Check } >= 5) , (ISPICKVAL(Lead.Status, "PreQualify-D")}
{
document.write('<font size=4 color=red>Warning!</font>');
}
//}
</script>
Thank You So Much, John....I was missing the quotes around the string field, did not know that!
So: