You need to sign in to do that
Don't have an account?
Frank Carter
Javascript Button to Lightning
Hello,
I need help. I have 2 Javascript Button which opens a visualforce page.
Now the problem is I don't know how to proceed. I read this document but I don't understand Hot to go on.
One of the javascript button code:
I think I have to edit the button to Visualforce Page instead of onclik Javascript. is It Correct?
This code (Javascript) seems like conditions to open the visualforce page. Where I must put this conditions? in Controller of the vf page?
Can anyone help me explaining me how to proceed in this case?
Thanks,
Frank
I need help. I have 2 Javascript Button which opens a visualforce page.
Now the problem is I don't know how to proceed. I read this document but I don't understand Hot to go on.
One of the javascript button code:
if ("{!ISPICKVAL(Opportunity.Demand_Activity_Stage__c,'Involved')}" != "true" && (("{!Opportunity.Opportunity_Type__c}" == "Delivery") || ("{!Opportunity.Opportunity_Type_def__c}" == "Partner") || ("{!Opportunity.Opportunity_Type_def__c}" == "Partner Direct"))) window.location.href = "/apex/Involve_PreSales?Id={!Opportunity.Id}"; //else if ("{!(Opportunity.Opportunity_Type_def__c)}" == 'Partner Direct') //alert("You cannot involve PreSales for Partner Direct Opportunity"); else if ("{!(Opportunity.Demand_Activity_Stage__c)}" == "Involved") alert("The PreSales has already been involved");What I have to do?
I think I have to edit the button to Visualforce Page instead of onclik Javascript. is It Correct?
This code (Javascript) seems like conditions to open the visualforce page. Where I must put this conditions? in Controller of the vf page?
Can anyone help me explaining me how to proceed in this case?
Thanks,
Frank
All Answers
Maybe it helps you to convert you JavaScript Buttons
https://lightning-configuration.salesforce.com/
Best regards
Thanks,
Frank
Thanks,
Frank