Skip to main content
Inspiring
April 3, 2017
Answered

adding a dropdown menu in form

  • April 3, 2017
  • 1 reply
  • 1316 views

I need some help adding a few dropdown menus to the form (code)below.

i managed to create a form in my other website - Golf Lesson Form for Owen Dawson Golf Instuction although i don't like the overall look of it.

i think the coding is different than below.

i'd like to have the form look similar to this  Business Contact - Harford County, Baltimore MD family photographer Jen Snyder

any help would be great. thank you

owen

<form action="https://mobirise.com/" method="post" data-form-title="CONTACT FORM">

                        <input type="hidden" value="k6SCWAPQpKTCR3dXaQWVGcUy3cf8+GuSiwPmA8kodnQ+mF9GnPQiW7TPT8CgDPUm/irzDbMANtqIXCQO44ibk/smX4BUKpREMrnFgHM3Xmdi1Tz+5xTnCCskLNfTwvhA" data-form-email="true">

                        <div class="row row-sm-offset">

                            <div class="col-xs-12 col-md-4">

                                <div class="form-group">

                                    <label class="form-control-label" for="form1-q-name">Name<span class="form-asterisk">*</span></label>

                                    <input type="text" class="form-control" name="name" required="" data-form-field="Name" id="form1-q-name">

                                </div>

                            </div>

                            <div class="col-xs-12 col-md-4">

                                <div class="form-group">

                                    <label class="form-control-label" for="form1-q-email">Email<span class="form-asterisk">*</span></label>

                                    <input type="email" class="form-control" name="email" required="" data-form-field="Email" id="form1-q-email">

                                </div>

                            </div>

                            <div class="col-xs-12 col-md-4">

                                <div class="form-group">

                                    <label class="form-control-label" for="form1-q-phone">Phone</label>

                                    <input type="tel" class="form-control" name="phone" data-form-field="Phone" id="form1-q-phone">

                                </div>

                            </div>

                        </div>

                        <div class="form-group">

                            <label class="form-control-label" for="form1-q-message">Message</label>

                            <textarea class="form-control" name="message" rows="7" data-form-field="Message" id="form1-q-message"></textarea>

                        </div>

                        <div><button type="submit" class="btn btn-primary">CONTACT US</button></div>

                    </form>

This topic has been closed for replies.
Correct answer BenPleysier

I think that the easiest way is to add bootstrap.css to your document and giving each input a class of form-control.

For the Bootstrap bit, add the following line just above the end head tag like

<!-- Latest compiled and minified CSS -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

</head>

Adding the class will look like

<select name="handicap" class="textfield form-control" id="handicap">

and

<input name="customername" type="Customername" class="textfield form-control" id="customername" />

1 reply

BenPleysier
Community Expert
Community Expert
April 3, 2017

The Jen Snyder site uses the Bootstrap framwework. If you have a look at http://getbootstrap.com/css/#forms you will see some examples.

Problem is, for you to use Bootstrap and ditch Spry is going to be a huge step. I could give you some pointers to start using Bootstrap, but you need to be comfortable with the change.

You could also have a look at some of these examples https://medium.com/swlh/creative-form-input-field-design-examples-bfe5dd50808a

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
owenpga2Author
Inspiring
April 3, 2017

thanks Ben

so  is there a way i could copy an paste a drop-down section of the coding from some source and paste it into the code i attached in the first post and change the wording for but not functionality? i'm guessing not? this code is from mobirise which is a drag and drop interface with no need for dreamweaver, although i would use DW to alter the code on the back end if  possible. thanks

owen