You need to sign in to do that
Don't have an account?
Abby Stocker
Lightning quick action is creating the wrong vf page?????
This is strange and must be something simple. I have a lightning quick action on the Claim custom object that should initiate the download of the "HomeDamage" visualforce page but when you click on the button it takes you to the "deliverynew" visualforce page instead?????? Any help is appreciated. Here is what I have provided below: Screenshot of quick action button, screenshot of quick action settings, screenshot of debug log and then the VF page code.
THANK YOU!
<apex:page standardController="Claim__c" renderAs="pdf" standardStylesheets="false" sideBar="false" showHeader="false" applyBodyTag="false">
<head>
<title>Claim PDF</title>
<style type="text/css">
@page {
margin-top: 10%;
margin-bottom: 10%;
margin-left: 5%;
margin-right: 5%;
}
* {
font-family: Arial;
}
div {
padding-bottom: 1em;
}
table {
text-align: Left;
margin-left: auto;
margin-right: auto;
}
th {
font-weight: bold;
}
.arhausTitle {
font-size: 12px;
line-height: 0px;
text-align: center;
}
.formTitle {
font-size: 11px;
text-align: center;
margin-top: 5%;
}
.formFooter {
position: static;
bottom: 0;
font-size: 14px;
text-align: left;
align-content: left;
line-height: 24px;
}
.contactColumn {
width: 50%;
float: left;
text-align: left;
}
.formBlanks {
margin-left: 10%;
margin-right: auto;
margin-top: 5%;
font-size: 14px;
empty-cells: hide;
text-align: left;
}
.formBlanks td {
width: 37%;
text-align: left;
}
#emptyCell {
width: 5%;
border-bottom: none;
}
.formTable * {
font-size: 11px;
border: 1px solid black;
border-collapse: collapse;
empty-cells: show;
padding: 5px;
}
.formTable th {
text-transform: uppercase;
}
.formTable td {
text-transform: none;
}
.formtext {
margin-left: 10%;
margin-right: 10%;
font-size: 14px;
empty-cells: hide;
text-align: left;
}
.footer {
margin-top: 20%;
margin-left: auto;
margin-right: auto%;
font-size: 14px;
text-align: left;
}
</style>
</head>
<body>
<div class="arhausTitle">
<div>
<apex:image url="{!$Resource.QuoteLogo}" width="300px"/>
<p>51 E. Hines Hill Rd Boston Heights, OH 44236</p>
<p></p>
<p>Phone: (440) 439-7700 Fax: (440) 449-7073</p>
</div>
</div>
<div class="formBlanks">
<table>
<tr>
<td>Claim #: {!Claim__c.Name}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Order #: {!Claim__c.Order_Number__r.Name}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Client Name: {!Claim__c.Account__r.Name}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Date of Failed Delivery:
<apex:outputText value="{0, date, MMMM d',' yyyy}">
<apex:param value="{!Claim__c.Date_of_Occurence__c}" />
</apex:outputText>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Carrier: {!Claim__c.Carrier__c}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Hub Location: {!Claim__c.Hub_Location_DC__c}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Delivery Charge:
<apex:outputText value="{0, number, ###,##0.00}">
$<apex:param value="{!Claim__c.Additional_Delivery_Charge__c}"/>
</apex:outputText>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Notes: {!Claim__c.Notes__c}</td>
</tr>
<div class="footer">
Thank you,
<p>TEXT</p>
<p><a style="text-align: left" href="TEXT"> TEXT</a></p>
<p> P: 440.439.7700 x 3226</p>
</div>
</table>
</div>
</body>
</apex:page>
THANK YOU!
<apex:page standardController="Claim__c" renderAs="pdf" standardStylesheets="false" sideBar="false" showHeader="false" applyBodyTag="false">
<head>
<title>Claim PDF</title>
<style type="text/css">
@page {
margin-top: 10%;
margin-bottom: 10%;
margin-left: 5%;
margin-right: 5%;
}
* {
font-family: Arial;
}
div {
padding-bottom: 1em;
}
table {
text-align: Left;
margin-left: auto;
margin-right: auto;
}
th {
font-weight: bold;
}
.arhausTitle {
font-size: 12px;
line-height: 0px;
text-align: center;
}
.formTitle {
font-size: 11px;
text-align: center;
margin-top: 5%;
}
.formFooter {
position: static;
bottom: 0;
font-size: 14px;
text-align: left;
align-content: left;
line-height: 24px;
}
.contactColumn {
width: 50%;
float: left;
text-align: left;
}
.formBlanks {
margin-left: 10%;
margin-right: auto;
margin-top: 5%;
font-size: 14px;
empty-cells: hide;
text-align: left;
}
.formBlanks td {
width: 37%;
text-align: left;
}
#emptyCell {
width: 5%;
border-bottom: none;
}
.formTable * {
font-size: 11px;
border: 1px solid black;
border-collapse: collapse;
empty-cells: show;
padding: 5px;
}
.formTable th {
text-transform: uppercase;
}
.formTable td {
text-transform: none;
}
.formtext {
margin-left: 10%;
margin-right: 10%;
font-size: 14px;
empty-cells: hide;
text-align: left;
}
.footer {
margin-top: 20%;
margin-left: auto;
margin-right: auto%;
font-size: 14px;
text-align: left;
}
</style>
</head>
<body>
<div class="arhausTitle">
<div>
<apex:image url="{!$Resource.QuoteLogo}" width="300px"/>
<p>51 E. Hines Hill Rd Boston Heights, OH 44236</p>
<p></p>
<p>Phone: (440) 439-7700 Fax: (440) 449-7073</p>
</div>
</div>
<div class="formBlanks">
<table>
<tr>
<td>Claim #: {!Claim__c.Name}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Order #: {!Claim__c.Order_Number__r.Name}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Client Name: {!Claim__c.Account__r.Name}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Date of Failed Delivery:
<apex:outputText value="{0, date, MMMM d',' yyyy}">
<apex:param value="{!Claim__c.Date_of_Occurence__c}" />
</apex:outputText>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Carrier: {!Claim__c.Carrier__c}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Hub Location: {!Claim__c.Hub_Location_DC__c}</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Delivery Charge:
<apex:outputText value="{0, number, ###,##0.00}">
$<apex:param value="{!Claim__c.Additional_Delivery_Charge__c}"/>
</apex:outputText>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Notes: {!Claim__c.Notes__c}</td>
</tr>
<div class="footer">
Thank you,
<p>TEXT</p>
<p><a style="text-align: left" href="TEXT"> TEXT</a></p>
<p> P: 440.439.7700 x 3226</p>
</div>
</table>
</div>
</body>
</apex:page>