Skip to content

A simple trick to set formatting of fields easily in SAEF

25 Aug 2009

A simple trick to set formatting of fields easily in SAEF

Field formatting in Stand-alone entry form in ExpressionEngine has always been pain for me. Especially in Stand-alone edit form.
I rarely use the default {custom_fields} tag as I prefer to stylize each field differently, so the only solution to give proper formattion to fields was adding
<input type=“hidden” name=”{exp:form_helper:field_grabber field_name=‘train_date_start’ which=‘format’}” value=“none” />
However, I’ve discovered much simplier way!

Include

{custom_fields}
<div style="display: none"></div>
{/custom_fields} 

anywhere in your template - and you’ll get field formatting for all fields authomatically added to your hidden fields list!

Note the {custom_fields} tag pair should not be empty - place something inside.

About

    Hello, my name is Yuri and I specialize in creating custom add-ons (plugins, modules, extensions) for ExpressionEngine CMS.
    You can reach me anytime by emailing .(JavaScript must be enabled to view this email address)