Form Field Select Disabled Option with Required Placeholder Issues

Hi,

I’ve been going through the docs. However I have had no luck in creating a disabled option in the form

The field config is as follows::

name: enquiry_type
id: enquiry_type
label: Type of enquiry
type: select
style: vertical
placeholder: --select an item --
validate:
required: true
options:
action: nochoice
folder: achoice
title: thechoice
date: mychoice

This should render according to what I read with the ’ – select an item --’ selected and being a disabled option. Thus requiring a user to select an option to make sure the required value is set.

However, when displayed it will always show the first item “nochoice”

Any assistance with this would be greatly appreciated as it seems that the form documentation for simple things like this does not match up with the way the plugin actually operates

Steven

I will also add. ID / classes do not work either.

The form is utilised in a modular page.

the output is as follows::

<div class="form-field">
    <label class="control-label col-sm-2">
                        How did you hear about us
                        <span class="required">*</span>
    </label>
    <div class="col-sm-10">
        <select class="form-control" name="data[heard_from]" required="required">
                        <option value="placeholder">
                --select an item --
            </option>
                        <option value="action">
                nochoice
            </option>
                        <option value="folder">
                achoice
            </option>
                        <option value="title">
                thechoice
            </option>
                        <option value="date">
                mychoice
            </option>
                    </select>
    </div>
</div>

Hi,

I’m facing the same problem and wonder if there is a solution or a workaround to deal with it.

For instance, I have a form with a select input and I defined a placeholder. The placeholder is never showed (Firefox), the box always displays the first option available.

Plus, even if this select field is marked as required, if I submit the form without touching this field, the form is submitted successfully but I don’t receive the corresponding value in the email…

Does anyone have an idea?