|
| |
|
|
mjmtravel
Posts: 327 Joined: 7/30/2006 Status: offline
|
Removing initial state from dropdown box - 5/17/2009 17:33:36
I'm sorry if this is posted somewhere but I have been searching for a hour with no results. I'm updating a database with a FP form adding a new record. Everything works fine and uploads great, but; I have a lot of dropdown boxes with options for the customer to pick from. I have initial settings on all of them basically telling them to pick this if? If the customer does not pick from all of the dropdown boxes it updates with all of the initial settings. Is there a way to set it up to so all of the default dropdown settings don't show up? I have been manually deleting them in the database after a customer does his upload. The form is not on a diet and is built with the FP form wizard. Thanks for your help in advance.
|
|
|
|
mjmtravel
Posts: 327 Joined: 7/30/2006 Status: offline
|
RE: Removing initial state from dropdown box - 5/18/2009 8:09:21
I don't want any zero's showing either because the data entered is showing on a results page. The zero's would not look so good. How about if I did this will it leave a blank? Thanks again <select size="1" name="Bedroom1Option1"> <option selected>--Select Option--</option> <option>Sleeper Sofa</option> <option>Futon</option> <option>Air Conditioning</option> <option>Ceiling Fan</option> <option>Television</option> <%If field-Name="Null" then%> No response given <%end if%> </select>
|
|
|
|
mjmtravel
Posts: 327 Joined: 7/30/2006 Status: offline
|
RE: Removing initial state from dropdown box - 5/18/2009 15:47:32
Ok I understand what your saying. I would prefer just leaving the field blank because in my instance if the customer does not pick a 2nd bedroom for example the rest of the fields need to show empty anyway. The problem I have is the field is not really blank because its using my initial text that remains in the box. Does that make any sense. Here is a link to see what I mean. http://www.travelbuff.net/propertysignup.asp Not sure about the coding, something more like this <select size="1" name="Bedroom1Option1"> <option selected>--Select Option--</option> <option>Sleeper Sofa</option> <option>Futon</option> <option>Air Conditioning</option> <option>Ceiling Fan</option> <option>Television</option> <%If Bedroom1Option1="0" then%> <%end if%> </select>
|
|
|
|
mjmtravel
Posts: 327 Joined: 7/30/2006 Status: offline
|
RE: Removing initial state from dropdown box - 5/19/2009 15:49:45
Thanks, that makes good sense. I will give that a try and see how it works. Thanks again for all your help.
|
|
|
|
mjmtravel
Posts: 327 Joined: 7/30/2006 Status: offline
|
RE: Removing initial state from dropdown box - 5/20/2009 17:12:31
I went with your idea and it worked great, but the zero's still showed up on the results page. After some playing I figured out if you use double quotation marks in place of the zero. The result comes up blank. You have to do this in the code itself because for some reason in you do it in the field properties box it will not work. So in the end it looked like this. Old way <select size="1" name="Bedroom1Option1"> <option value="0" selected>--Select Option--</option> <option value="sleeper">Sleeper Sofa</option> <option value="futon">Futon</option> <option value="ac">Air Conditioning</option> <option value="fan">Ceiling Fan</option> <option value="tv">Television</option> </select> New way <select size="1" name="Bedroom1Option1"> <option value="" selected>--Select Option--</option> <option value="sleeper">Sleeper Sofa</option> <option value="futon">Futon</option> <option value="ac">Air Conditioning</option> <option value="fan">Ceiling Fan</option> <option value="tv">Television</option> </select>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|