You need to sign in to do that
Don't have an account?
Ramandeep_Singh
Window.alert
Hi Guys,
I am trying to pop up a alert window when there is any change in the desired case field.
And then looked to online solution and got two diffrent codes, with one it is working with another it is not.
Please help me with this and tell me what am I missing.
Regards,
Ramandeep Singh
I am trying to pop up a alert window when there is any change in the desired case field.
And then looked to online solution and got two diffrent codes, with one it is working with another it is not.
***********************************Working code******************************* <apex:page standardController="case" rendered="{!(case.Case_Age__c>10 )}" > // Where Case_Age__c is a formula field to retrieve date from datetime <script type="text/javascript"> { window.alert("******") } </script> </apex:page> ************************************Not Working***************************** <apex:page standardController="case" > <script type="text/javascript"> { window.document.onload = new function(e) { if({!case.Case_Age__c>10}) // when I use some other text field it genrates a alert(example case.status='New') { alert("**********"); } else { alert("**********"); } } </script>
Please help me with this and tell me what am I missing.
Regards,
Ramandeep Singh
Can you please try this?
Thanks for the reply. And it is still the same with no alert popup.
Regards,
Ramandeep