• David Kevin
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello everyone,

We have a custom button on Account object that calls a visualforce page. The visualforce page has a page action that redirects the user to the standard New Opportunity page Edit screen with some prefilled fields. This has been working fine for the past few months. 

However, recently, we have observed that when we click the button, a blank screen appears with the URL as 
https://instance-name--c.cs71.visual.force.com/apex/CreateOpportunity?scontrolCaching=1&id=xxxxxxxxxxxxx
and only upon refreshing this page, it redirects to the New Opportunity page. This is adding an additional step for all the users many of whom are not actually aware that refreshing can redirect in the first place and it is causing some friction in the daily activities. 

This is happening only with Chrome browser. Has anyone seen a similar behavior or aware of a possible cause/fix?  

Another thing, when Chrome inspect/console is opened, it works fine. It does show a warining message that "HTTP-Based Public Key Pinning is deprecated. Chrome 69 and later will ignore HPKP response headers." ; not sure if it related at all to the re-direct issue.

Any help/inputs will be appreciated.
Hi there,
I have created a custom tab for my opportunities and have attached my vf page's URL. I want to be able to go into this tab under any given opportunity and see certain details of the account it is related to. It seems that for this to work, the record id for the opportunity needs to be manually input, but my requirements say the process must be automated. In other words, I need to modify my vf page to recognize which opportunity is being viewed and to automatically include the respective account id in its own URL. Intuition tells me this must be done through the usage of a controller, but I'm not familiar enough with controllers to understand how to script this out. Any direction on how to do this would be greatly appreciated as this is the biggest obstacle I have come up against.