title: Sublist in Netsuite PDF/HTML Template
body: <p>I have a credit memo template for which I want to include what invoices this credit has been applied to (This information is in a sublist on the record under ITEM > Apply )</p>
  
  <p>I currently have the below code in the template, which only seems to show the first invoice in the sublist?? I can't figure why.</p>
  
  <pre><code>    &lt;#if record.apply?has_content&gt;
  
  &lt;table&gt;
  &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Applied to:&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;/table&gt;
  &lt;table&gt;&lt;#list record.apply as apply&gt;&lt;#if apply_index==3&gt;
  &lt;thead&gt;
      &lt;tr&gt;
      &lt;th style="align: center;"&gt;Date&lt;/th&gt;
      &lt;th style="align: center;"&gt;Invoice&lt;/th&gt;
      &lt;th style="align: center;"&gt;Original Amount&lt;/th&gt;
      &lt;th style="align: center;"&gt;Payment&lt;/th&gt;
      &lt;th style="align: center;"&gt;Due&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;&lt;tr&gt;
      &lt;td style="align: center;"&gt;${apply.duedate}&lt;/td&gt;
      &lt;td style="align: center;"&gt;${apply.refnum}&lt;/td&gt;
      &lt;td style="align: center;"&gt;${apply.total}&lt;/td&gt;
      &lt;td style="align: center;"&gt;${apply.amount}&lt;/td&gt;
      &lt;td style="align: center;"&gt;&lt;#assign remaining=(apply.total)-(apply.amount)&gt;${remaining?string.currency}&lt;/td&gt;
      &lt;/tr&gt;&lt;/#if&gt;&lt;/#list&gt;
      &lt;/table&gt;&lt;/#if&gt;
  </code></pre>
  
  <p>I don't have access to any suitescript or serverscript or anything like that, so I need a solution to the source code in the PDF/HTML Template (if possible)</p>