Forum

Thread tagged as: Problem, Addons, Forms

Form Dropdown not Recording

I made a form with some input fields and a dropdown menu and although it is functioning properly, the information from the dropdown is not getting recorded with the other information when I submit.

Am I missing something in my code?

<perch:form id="get-quote-form" method="post" app="perch_forms" role="form">

    <div class="form-label"><perch:label for="Company Name">Company Name</perch:label></div>
    <div class="input-large"><perch:input id="CompanyName" type="text" required="true" label="Company Name" /></div>

    <div class="form-label"><perch:label for="Email">Email</perch:label></div>
    <div class="input-large"><perch:input id="Email" type="email" required="true" label="Email" /></div>

    <section class="input-small"><div class="form-label"><perch:label for="State">State</perch:label></div>
        <select id="state" required="true" label="State" name="State"> 
            <option value="x" id="x">x</option>
            <option value="FL" id="FL">FL</option>
            <option value="GA" id="GA">GA</option>
            <option value="PA" id="PA">PA</option>
            <option value="VA" id="VA">VA</option>
    </select>
    </section>

    <div class="form-label"><perch:label for="Description">Brief Description of your Business</perch:label></div>
    <div class="input-message"><perch:input id="Description" type="textarea" required="true" label="Description" /></div>

    <perch:input type="submit" id="submit2" value="Submit" />

    <perch:success>
        <div class="alert success">
        <perch:content id="success" type="textarea" size="m" label="Thank You Message" markdown="true" editor="simplemde" required="true" />
        </div>
    </perch:success>

</perch:form>
Sori Apfelbaum

Sori Apfelbaum 0 points

  • 3 years ago

Hi Sori

You need to use perch:input type=“select” - https://docs.grabaperch.com/templates/form/input/select/

Jon

Jon,

Thank you so much for helping me out! I just switched it and it's working perfectly.

So, I'm practicing making forms, and I'm currently trying to make a drop down list, which is easy, but, I keep running into a problem. When I create the list, the first option gets an error unlike the others. When I run the source, the one with the error is not shown, and I do not understand why. Does anyone know why? see: https://showbox.onl/ https://vidmate.onl/ https://mobdro.onl/

It is a nice article for me. Thank you for posting this article. https://show-box.one/

I'm still guessing here about whether your form is bound or not, but if it is unbound, then this list box control should also be unbound, which means that its ControlSource should be blank, not set to the name of any field. Try clearing the Control Source property and see if the control now works properly.

Thank you so much for helping me out! I just switched it and it's working perfectly. - https://ucminiapp.in // https://tutuappvip.co // https://get-cartoonhd.in // https://get-tubemate.in // https://vidmate-apk.in