The following has evaluated to null or missing: ==> selectedCoverageAmount [in template "20116#20152#7369296" at line 41, column 66] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${selectedCoverageAmount} [in template "20116#20152#7369296" at line 41, column 64] ----
1<#assign phoneNumber = request.getSession().getAttribute("dynamicPhone")!Text.getData()/>
2<#assign nyPhoneNumber = request.getSession().getAttribute("nyPhone")!TextNew.getData()/>
3<#assign landingPageURL = "/"/>
4<#assign logoImageURL = Image.getData()/>
5<#assign ShowPreviewPlanProgressive = layout.getExpandoBridge().getAttribute("Show Preview Plan Progressive",false)!""/>
6<#assign ShowCustomizePolicy = layout.getExpandoBridge().getAttribute("Show Customize Policy",false)!""/>
7<#assign sessionStateVal = request.getSession().getAttribute("equinox.http.context.forCP.Rest_selectedState")!""/>
8<#if request??>
9<#assign cpQuoteData = request.getSession().getAttribute("equinox.http.context.forCP.Rest_cpQuoteData")!""/>
10 <#if cpQuoteData?has_content && cpQuoteData.partnerConfig?has_content>
11 <#if cpQuoteData.partnerConfig.landingPageURL?has_content && cpQuoteData.partnerConfig.landingPageURL != "">
12 <#assign landingPageURL = cpQuoteData.partnerConfig.landingPageURL!"/"/>
13 </#if>
14 <#if cpQuoteData.partnerConfig.logoImageURL?has_content && cpQuoteData.partnerConfig.logoImageURL != "">
15 <#assign logoImageURL = cpQuoteData.partnerConfig.logoImageURL!Image.getData()/>
16 <#if cpQuoteData.partnerConfig.originCode == "o8" || cpQuoteData.partnerConfig.originCode == "O8">
17 <style>
18 .logo img {
19 width: 200px;
20 }
21 </style>
22 </#if>
23 </#if>
24 </#if>
25 <#if cpQuoteData?has_content && cpQuoteData.isStateHasReplaceQue()?has_content>
26 <#assign isStateHasReplaceQues = cpQuoteData.isStateHasReplaceQue()?string/>
27 </#if>
28 <#if cpQuoteData?has_content>
29 <#assign selectedCoverageAmount = cpQuoteData.selectedCoverageAmount!""/>
30 <#assign extraAddOnCoverageAmount = cpQuoteData.extraAddOnCoverageAmount!""/>
31 <#assign extraPayoutAddOnPremium = cpQuoteData.extraPayoutAddOnPremium!""/>
32 <#assign selectedModalPremium = cpQuoteData.selectedModalPremium!""/>
33 <#assign totalPlanPremium = cpQuoteData.totalPlanPremium!""/>
34 </#if>
35</#if>
36<#if ShowPreviewPlanProgressive>
37<script>
38
39 $(document).ready(function(){
40
41 $("#selectedCoverageAmount").text(formatCovAmt(${selectedCoverageAmount})+" ("+formatCurrency(${selectedModalPremium})+")")
42 $("#extraAddOnCoverageAmount").text(formatCovAmt(${extraAddOnCoverageAmount})+" ("+formatCurrency(${extraPayoutAddOnPremium})+")")
43
44 $("#totalPlanPremium").text(formatCurrency(${totalPlanPremium}))
45
46
47 });
48
49 function formatCurrency(currVal){
50 if(null != currVal){
51 if(!isNaN(currVal)){
52 currVal = Number(currVal);
53 }
54 return '$'+currVal.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
55 }
56 }
57
58 function formatCovAmt(currVal){
59 currVal = formatCurrency(currVal);
60 if(null != currVal){
61 currVal = currVal.split('.');
62 return currVal[0];
63 }
64}
65</script>
66<div class="container header_container">
67 <div class="row">
68 <div class="col-12 progressive_header">
69 <div class="logo_navigation_wrapper">
70 <div class="logo">
71 <a href="/">
72 <img loading="lazy" alt="${Image.getAttribute("alt")}" data-fileentryid="${Image.getAttribute("fileEntryId")}" src="${logoImageURL}" title="logo" />
73 </a>
74 </div>
75
76 </div>
77 <div class="right_header">
78 <div class="contact_section d-md-block nonNyPhone" style="display:none!important;">
79 <p>
80 <a href="tel: ${phoneNumber}" title="phone number" class="d-none d-md-flex">
81 <span class="call_icon"><i class="bi bi-telephone"></i>
82 </span><span class="call_number">${phoneNumber}</span>
83 </a>
84 <#if ShowPreviewPlanProgressive>
85 <a title="" class="plan_preview_icon" tabindex="0">
86 <span class=""><img loading="lazy" src="/o/cpapplytheme/images/Preview_my_plan.svg" alt="Preview my plan image"> </span>
87 <span class="plan_preview_text">Preview My Plan<img loading="lazy" alt="down arrow" src="/o/cpapplytheme/images/Blue.svg"> </span>
88 </a>
89 </#if>
90 </p>
91 </div>
92 <div class="contact_section d-md-block nyPhone" style="display:none!important;">
93 <p><a href="tel: ${nyPhoneNumber}" title="phone number">
94 <span class="call_icon"><i class="bi bi-telephone"></i>
95 </span><span class="call_number">${nyPhoneNumber}</span></a></p>
96 </div>
97 </div>
98
99 </div>
100 </div>
101 <div class="row view_preview_plan_container">
102 <p class="open_close_arrow"></p>
103 <div class="col-12 preview_plan_wrapper">
104
105 <div class="view_preview_plan">
106 <div class="plan_summary">
107 <h2>Plan Summary</h2><img loading="lazy" alt="down arrow" src="/o/cpapplytheme/images/Close.svg">
108 </div>
109 <div class="view_li_plan">
110 <p>Life Insurance Plan</p>
111 <h4>Guaranteed Acceptance Life Insurance </h4>
112 </div>
113 <div class="view_coverage_amount">
114 <p>Coverage Amount</p>
115 <div class="view_coverage_amount_tooltip">
116 <h4 id="selectedCoverageAmount" >${selectedCoverageAmount} ( ${selectedModalPremium?string})</h4></div>
117 </div>
118 <#if extraAddOnCoverageAmount?has_content>
119 <div class="view_insurance_rider">
120 <p>Insurance Riders</p>
121 <div class="view_insurance_rider_wrapper">
122 <h4>Accidental Death Benefit</h4>
123 <div class="view_insurance_rider_tooltip">
124 <h4 id="extraAddOnCoverageAmount" >${extraAddOnCoverageAmount} (${extraPayoutAddOnPremium})</h4></div>
125 </div>
126 </div>
127 </#if>
128 <div class="view_monthly_premium">
129 <p>Total Monthly Premium</p>
130 <h4 id="totalPlanPremium" >${totalPlanPremium}</h4>
131 </div>
132 <#if ShowCustomizePolicy>
133 <div class="view_customize_policy">
134 <p><a href="/start/build-coverage">Customize Policy<img loading="lazy" src="/o/cpapplytheme/images/Customize_policy_icon.svg" alt="customize policy"/></a></p>
135 </div>
136 </#if>
137 <div class="close_summary d-md-none">
138 <button>Close Summary</button>
139 </div>
140 </div>
141 </div>
142 </div>
143</div>
144<#else>
145 <div class="container header_container d-flex justify-content-between">
146 <div class="logo_navigation_wrapper">
147 <div class="logo">
148 <a onclick="abandonBuyingFlow('/quote','${landingPageURL}');return false">
149 <img loading="lazy" alt="${Image.getAttribute("alt")}" data-fileentryid="${Image.getAttribute("fileEntryId")}" src="${logoImageURL}" title="logo" />
150 </a>
151 </div>
152 </div>
153 <div class="right_header">
154 <div class="contact_section d-md-block nonNyPhone" style="display:none!important;">
155 <p><a href="tel: ${phoneNumber}" title="phone number">
156 <span class="call_icon"><i class="bi bi-telephone"></i>
157 </span><span class="call_number">${phoneNumber}</span></a></p>
158 </div>
159 <div class="contact_section d-md-block nyPhone" style="display:none!important;">
160 <p><a href="tel: ${nyPhoneNumber}" title="phone number">
161 <span class="call_icon"><i class="bi bi-telephone"></i>
162 </span><span class="call_number">${nyPhoneNumber}</span></a></p>
163 </div>
164 </div>
165 </div>
166</#if>
167<style>
168@media (max-width: 374px){
169.app_product_header .selected_product_title_container .selected_product_coverage_container .product_name_quote {
170 font-size: 13px;
171}
172}
173</style>