Skip to content

SelectBoxIt applies itself to hidden form fields #94

@peterfarrell

Description

@peterfarrell

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions