View previous topic :: View next topic |
Author |
Message |
susanmj
Joined: 12 Oct 2006 Posts: 12
|
Posted: Fri May 30, 2014 8:05 pm Post subject: Drop down box sort order |
|
|
I have a drop down box for people to choose a specific county to send time sheets to. I need to put as the first option a box that reads Click arrow to choose county, but regardless what I do that option just will not appear first.
Help please!
Also, your tutorial for inserting forms in Homestead built sites is a bit off. Contact me if you'd like some input.
Thank you!
Susan |
|
Back to top |
|
 |
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Mon Jun 02, 2014 3:13 am Post subject: Reply |
|
|
You will likely need to do this by manually changing some of the code for the drop box. If you look at the code, you should see something simialr to this:
Code: |
<select name="q[10]">
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
...
</select>
|
Before the first option line, add a new blank one:
Code: |
<select name="q[10]">
<option value="" selected>Click arrow to choose country</option>
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
...
</select>
|
Nick Ladd
myContactForm.com |
|
Back to top |
|
 |
susanmj
Joined: 12 Oct 2006 Posts: 12
|
Posted: Mon Jun 02, 2014 5:25 am Post subject: Reply |
|
|
Thanks for your response Nick. I had actually changed the code already to the following, but I thought I remembered reading somewhere on the MCF site that we could change the basic look, but not fields. So, I was afraid that perhaps doing this would interfere with the functionality. If you think it's ok then I'm good to go and I appreciate your help.
<label for="email_to" style="float: left; width: 30%; padding-top: 4px; font-family: Verdana; color: #485B52; font-size: 14px; font-weight: bold;">Send To: <span style="color: #FF0000">*</span></label>
<select name="email_to" id="email_to" >
<option value="0">Click arrow to select county </option>
<option value="1">Lincoln County</option>
<option value="2">Lake County</option>
<option value="3">Mineral & Sanders Counties</option>
<option value="4">Ravalli County</option>
</select>
Susan |
|
Back to top |
|
 |
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Tue Jun 03, 2014 2:37 am Post subject: Reply |
|
|
That will work. I'd make on small change.
Change:
Code: |
<option value="0">Click arrow to select county </option>
|
To:
Code: |
<option value="">Click arrow to select county </option>
|
Nick Ladd
myContactForm.com |
|
Back to top |
|
 |
susanmj
Joined: 12 Oct 2006 Posts: 12
|
Posted: Tue Jun 03, 2014 2:50 am Post subject: Reply |
|
|
Will do ...
Thank you Nick. |
|
Back to top |
|
 |
|