We have some conditional fields -- something they are hidden because the user isn't allowed to select something and a hidden field + text is used instead:
<cfif usrType != 'Trainer'>
<form:select name="primary_trainer" id="primary_trainer" path="primary_trainer.admin_id" class="span4">
<form:option value="" label="Please select a trainer"/>
<form:options items="#variables.admins#" labelCol="displayName" valueCol="admin_id" />
</form:select>
<cfelse>
<p><span class="uneditable-input">#variables.adminBean.getFormattedName()#</span></p>
<form:hidden name="primary_trainer" value="#variables.adminBean.getAdmin_id()#" />
</cfif>
SelectBoxIt tries to apply itself to the hidden form field.
We have some conditional fields -- something they are hidden because the user isn't allowed to select something and a hidden field + text is used instead:
SelectBoxIt tries to apply itself to the hidden form field.