You need to sign in to do that
Don't have an account?

Popup alert on Visualforce page Issue
Hey all,
I am trying to generate a pop up alert message whenever a checkbox(Programmatic__c) is TRUE on Opportunity. The checkbox is getting updated by means of workflow. Below is the javascript embedded on VF page which gives an alert message. But, it gives error message everytime I refresh the checkbox. I want after giving error message once, the checkbox should be FALSE. or , if there is any other workround to display the error message only once.Below is my code:
<apex:page StandardController="Opportunity">
<script>
window.document.onload = new function(e)
{
if({!Opportunity.Programmatic__c})
{
alert("Please enter value.");
}
}
</script>
I am trying to generate a pop up alert message whenever a checkbox(Programmatic__c) is TRUE on Opportunity. The checkbox is getting updated by means of workflow. Below is the javascript embedded on VF page which gives an alert message. But, it gives error message everytime I refresh the checkbox. I want after giving error message once, the checkbox should be FALSE. or , if there is any other workround to display the error message only once.Below is my code:
<apex:page StandardController="Opportunity">
<script>
window.document.onload = new function(e)
{
if({!Opportunity.Programmatic__c})
{
alert("Please enter value.");
}
}
</script>
Please follow the following link for one time pop up:
http://www.webdeveloper.com/forum/showthread.php?67519-Code-for-One-Time-Pop-Up
http://stackoverflow.com/questions/11420201/one-time-fancybox-popup-like-on-digg-com
Thanks
Vikash_SFDC