• Trevor Gill
  • NEWBIE
  • 5 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I had a little visualforce page on my "Informal Case" custom object, that would automatically open a new tab when the status of the case = Issued. That Visualforce page doesn't seem to work in the Lightning Experience, though. Is there any way to generate a new tab or a popup window from a field value change in Lightning Experience?

Here's my original visualforce page that was working in Salesforce Classic, but which does nothing in Lightning Experience:
<apex:page standardController="Informal_Case__c" >
<script src="/soap/ajax/34.0/connection.js"></script>
<script src="/soap/ajax/34.0/apex.js"></script>
<script>
var arrId = '{!$CurrentPage.parameters.id}';
var queryresult = sforce.connection.query("Select status from case where id='"+arrId+"'");
var records = queryresult.getArray("records");
if(
"{!Informal_Case__c.Status__c}" === "Issued")
{
window.open("/apex/ActionPlanCreation?");
}

</script>

</apex:page>

Is there documentation on how to extend Action Plans to other Objects?

 

Thanks,


Sonny