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
Louisa Pidcock 11Louisa Pidcock 11 

pop up not working in prod

Hi Guys 

I am deploying a project at the moment and am completely flommuxed as to why my VF pop up alert ( is triggred by workflow that populates a text area, then the VF pop up displays the contents of that field)

It works perfectly in the sandbox but not in prod... I have ensured i have access to the VF page on my profile and the workflow is behnaving as expected and I have not amended the VF code since deploymet from sandbox - anyone got any ideas?? 

here is my VF Page:

<apex:page standardController="Counterparty__c">
  <script type="text/javascript">

           window.onload=function(){

                 var alertMessage = "{!Counterparty__c.Alert_Message__c}";

                    if( alertMessage != null && alertMessage !='')

                      alert( alertMessage );

}
</script>
</apex:page>
Best Answer chosen by Louisa Pidcock 11
Yogeshwar TailorYogeshwar Tailor
Hi Louisa,

Run your VF page Like below format.

Pass any Counterparty__c record id to url...

https://test-lightning-dev-ed--c.ap5.visual.force.com/apex/PopupEg?id=Copy id here

Run your vf page like that...Let me know if any problem comes.

Thanks,
Yogesh

 

All Answers

Yogeshwar TailorYogeshwar Tailor
Hi Louisa,

Run your VF page Like below format.

Pass any Counterparty__c record id to url...

https://test-lightning-dev-ed--c.ap5.visual.force.com/apex/PopupEg?id=Copy id here

Run your vf page like that...Let me know if any problem comes.

Thanks,
Yogesh

 
This was selected as the best answer
Louisa Pidcock 11Louisa Pidcock 11
OK that generated the pop up just fine... I dont really undertsand why though or what to do next as I astill need it to only fire when the alert_message__c field is populated ... sorry for my ignorance, i am new to all of this and struggling a fair bit.. especally as it worked in sandbox !
Louisa Pidcock 11Louisa Pidcock 11
omg hang on... i think i know what it is lol...
Louisa Pidcock 11Louisa Pidcock 11
yep im just an idiot hahaha - i adnt added the vf page to the layout and reduced pixel height/ width to 0 :) thanks for all your help guys!