Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"Hidden" fields in WebGUI dataform coming out as type="text"
<div class="column-l">
[% FOREACH item IN field_loop; FOREACH [item] %]
[%# UNLESS field_isHidden %]
[% UNLESS field_name.match('notes') %]
<label for="[% field_name %]">[% field_label %]</label>
[% UNLESS field_form.match(" class=\"select\"") %]
<div class="text">
[% END %]
[% IF session_var_adminOn %]
[% IF canEdit %]
[% field_controls %]
[% END %]
[% END %]
[% field_form %]
[% UNLESS field_form.match(" class=\"select\"") %]
</div>
[% END %]
[% END %]
[%# END %]
[% END;END %]
</div> <!-- .column-l -->
Output:
...
(last 4 controls in column-1)
<label for="contact_name"></label>
<div class="text">
<input type="text" maxlength="255" size="0" value="" name="contact_name" id="contact_name_formId"> </div>
<label for="contact_id"></label>
<div class="text">
<input type="text" maxlength="255" size="0" value="" name="contact_id" id="contact_id_formId"> </div>
<label for="carrier_company"></label>
<div class="text">
<input type="text" maxlength="255" size="0" value="" name="carrier_company" id="carrier_company_formId"> </div>
<label for="carrier_id"></label>
<div class="text">
<input type="text" maxlength="255" size="0" value="" name="carrier_id" id="carrier_id_formId"> </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.