You need to sign in to do that
Don't have an account?
ShadowlessKick
Phantom Box
I am using an "Quick Action" to create the same functionality that a button had in Classic. There is always a phantom box that does not close without user interaction. It must be some type of QuickAction container? Can this be closed automatically somehow? Thought using the NavigateToSObject would force the "Action" to redirect.
<apex:page standardController="Contact" showQuickActionVfHeader="false"> <script src="/soap/ajax/33.0/connection.js" type="text/javascript"></script> <script> var previousOnload = window.onload; window.onload = function() { if (previousOnload) { previousOnload(); } if( (typeof sforce != 'undefined') && (sforce != null) ) { sforce.one.navigateToURL('https://Somewhere.com/sfdc/APlace?UserId={!$User.Id}&SessionId={!$Api.Session_ID}&ServerEndPoint={!$Api.Partner_Server_URL_260}&SFDCId={!Contact.Id}&SFDCIdType=Contact'); sforce.one.navigateToSObject('{!Contact.Id}'); } else { window.location="https://Somewhere.com/sfdc/APlace?UserId={!$User.Id}&SessionId={!$Api.Session_ID}&ServerEndPoint={!$Api.Partner_Server_URL_260}&SFDCId={!Contact.Id}&SFDCIdType=Contact')"; sforce.one.navigateToSObject('{!Contact.Id}'); } } </script> </apex:page>
Andy Boettcher
Your best bet isn't to try and like-for-like "reproduce what you had in Classic" because you're going to run into crap like this constantly. Use the native functionality or Lightning Components to accomplish what you're looking to do.
ShadowlessKick
OK. So how would I accomplish this in lightning then?
James Loghry
For look and feel (getting VF or lightning components) to look more like the lightning experience, I would recommend learning about the SLDS or Salesforce Lightning Design System (http://www.lightningdesignsystem.com/)
ShadowlessKick
- Still trying to solve this. Just trying to launch an external URL and close the box that is left behind with a quick action. They have a button that allows them to close the box but they are not pleased. Looked at the lightning design link above. Did not see any direction how to close the window. Does someone have some positive feedback?