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
sml9099sml9099 

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>


VikashVikash (Salesforce Developers) 
Hi,

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