I’ve built a SAEF where my client can upload delivery info for his haulage business. When I try to preview an entry, any custom fields between {preview} tags are wrapped in tags.
The following code:
{exp:weblog:entry_form weblog="growers" return="growers/index" preview="growers/brown"}
{preview}
Please check the following information is correct before hitting submit.
<h2>{title}</h2>
<p><ul><br />
<li>Delivery Note:{del_note}</li><br />
<li>Customer: {up_customer}</li><br />
<li>Delivery Reference: {up_del_ref}</li><br />
<li>Grower Reference: {up_grower_ref}</li><br />
<li>Product: {up_product}</li><br />
<li>Product Reference: {up_product_ref}</li><br />
<li>Quantity: {up_quantity}</li><br />
<li>Field /Store Reference: {up_fieldstore_ref}</li><br />
<li>Haulier: {up_haul}</li><br />
<li>Trailer Number: {up_trailer}</li><br />
</ul><br />
....<br />
{/preview}renders as:
<ul>
<li>Del Note:1</li>
<li>Customer: 45</li>
<li>Delivery Reference: 1445APB</li>
<li>Grower Reference: GMRR5</li>
<li>Product: Carrots</li>
<li>Product Reference: EEWR45</li>
<li>Quantity: 2000kg</li>
<li>Field /Store Reference: HAM</li>
<li>Haulier: PPK</li>
<li>Trailer Number: AK528LP</li>
</ul>Default text formatting on each custom field is set to ‘None’ in the Admin panel. If I try to output the same info inside {exp:weblog:entries} tags the info displays as it should; ie no tags within my <li>s. Has anyone had the same problem or am I just doing something I shouldn’t? I’m running 1.6, build 20070815.
Many Thanks
- Jamie