Back to myContactForm.com - Easy email form creation and processing for your web site
myContactForm.com - Help Forum Forum Index myContactForm.com - Help Forum
Have a question that you need answered about myContactForm.com? Post it on this message board but first search this forum and read out FAQ to ensure it has not already been answered. This is not a board to post links to your site! SPAM will be deleted!
 
   Search MessagesSearch Messages
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drop down box sort order

 
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Form Management
View previous topic :: View next topic  
Author Message
susanmj



Joined: 12 Oct 2006
Posts: 12

PostPosted: Fri May 30, 2014 8:05 pm    Post subject: Drop down box sort order Reply with quote

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
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2684

PostPosted: Mon Jun 02, 2014 3:13 am    Post subject: Reply Reply with quote

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
View user's profile
susanmj



Joined: 12 Oct 2006
Posts: 12

PostPosted: Mon Jun 02, 2014 5:25 am    Post subject: Reply Reply with quote

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
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2684

PostPosted: Tue Jun 03, 2014 2:37 am    Post subject: Reply Reply with quote

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
View user's profile
susanmj



Joined: 12 Oct 2006
Posts: 12

PostPosted: Tue Jun 03, 2014 2:50 am    Post subject: Reply Reply with quote

Will do ...

Thank you Nick.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Form Management All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group