Change Form Fields Based On A Drop-down List?

May 16, 2010

I need to be able to change the fields of a form based on a drop-down list. Like if someone picks option A field 1 shows and if they change it to option B field 1 and 2 show up without reloading the page.

If you need me to explain more I will try to do a better job. If I could be pointed in the general direction that would be great, I dont exactly need to be spoon-fed, although I do like spoons if you catch my drift .

View 2 Replies


ADVERTISEMENT

Form Validation: Disallowing Selection Of 2 Fields In Drop Down List?

Apr 27, 2011

rm validation! I want this to be validated upon selection of the drop down list (not when it comes to submit button)I have 2 drop down lists:Starting date (June 5th, 6th 7th)Ending date (June 5th, 6th 7th)I want to write a script that would NOT ALLOW one to choose:- Starting date June 6th and Ending date June 5th- Starting date June 7th and Ending date June 6th- Starting date June 7th and Ending date June 5th

View 6 Replies View Related

Creating A Form That Will Change The Number Of Fields Based On User Input

Jan 4, 2006

I have a form that collects information about up to 5 items. I would
like the user to be able to select from a drop down menu how many items
for which they want to compare information, and then have the form
change the number of input fields accordingly.

In other words, if the user selects enter info for 3 items, then input
fields for only 3 items are shown, if they change it to 4 items, then a
fourth column shows up in the table with the appropriate input fields.

View 2 Replies View Related

JQuery :: Limit If A Value Can Be Selected In A Drop Down List (select) Based On Other List

Jun 9, 2009

I have a page that displays a list of people playing in a tournament. I need to be able to generate a Leaderboard based on which players are manually selected by the admin. Next to each person there is a drop-down list. An admin can go in and select a "slot" that a player should be in on the leader board from 1 to 8, or leave it blank if none. What I need to figure out how to do is the following, when a change event happens on a drop-down list, and say the value 5 is selected, I need to check to make sure that 5 is not already selected in one of the other players drop-down lists, in other words, that the 5th leaderboard slot is not already full. if it is, display an error message and make them change that one first. how to do that with jQuery? I'm thinking it will have something to do with the each() function, but not sure exactly how the logic should work.

View 4 Replies View Related

Change A Drop Down Based On What Is Selected In A Seperate Drop Down?

Jun 26, 2006

I've got 2 drop down select lists. The first one would have something like

-Category 1
-Category 2
-Category 3

Then what I'd like to happen is when you select one of those categories the next drop-down below it loads something like

--Sub Category 1
--Sub Category 2
--Sub Category 3

Any idea how I'd pull that off?

View 1 Replies View Related

Dynamic Drop Down List Based On Text Field Value

Nov 25, 2009

I have a form that has a pretty complicated combo box - a user starts typing text, it queries a database for matches, and displays the results to the user. The user can then select the match they desire and it has a value id, which I am currently sending to a hidden field in the form. So, for example: user starts typing in a movie name, Seven - it returns Seven and user selects it. The form submits the id of the movie seven (say 12) to a hidden field.

Where I am stumped: Once a user selects a movie title, I have another drop down select box that is to display the available formats of the movie by querying my database based on the product id (12) and returning the available formats in the list:

DVD
BLUERAY
VHS

I am pretty good at programming, but I cannot figure this out - how to make the select box fire and return results once the value for the textbox has been captured.

View 1 Replies View Related

Order Form Change Text Fields With Select Fields

Jan 24, 2011

I have this order form where the customers can change the quantity by intput in a text field.I would like to have the text field changed with select fields, but doing so in the form, the script is not doing anymore.Can anyone have a look and tell me what to change in the scritp to accept select fields in place of the text fields.

View 5 Replies View Related

Change Occurance Of Text In A Drop Down List

Apr 6, 2011

I have the following html:[code]I would like to know if there was a solution in JS which would change the occurance of the 'and' in the last option to '&'.Therefore after the JS has kicked in, the html will read:[code]

View 3 Replies View Related

Drop Down History In Form Fields

Mar 14, 2010

I have written my own js code for a dropdown form-field list based on a MySQL database table search against live typing into this form field.Problem is, my browsers all remember what I typed there before and now there is a conflict where the history list drops down over mine. My program depends upon the direct clicking of a row in my own js list but since this is covered with the history list, it does not work.How can I fix this?Is there a way to programmatically disable the cached list? Or is there some better way to go about it?

View 2 Replies View Related

Removechild - Create A Drop Down List Which Depend To The Value Selected From The Previous Drop Down List

Jul 28, 2010

I am trying to create a drop down list which depend to the value selected from the previous drop down list. I can add it without problem, but If I change again the value of the first drop down list I would like to remove the previous drop down list generated from the first value. If I try to remove it when I create the element, it even does not create the element, the remove element function seems to work because when you click on the remove link it works.

[Code]...

View 4 Replies View Related

Script Or List Component That Allow To Change Order By Drag & Drop?

Jan 4, 2010

looking for a script or list component that allow to change order by drag & drop

View 2 Replies View Related

Auto Update Price Based On Form Fields?

Aug 7, 2010

I am more of a front end guy with experience in xhtml/css and want to get my hands dirty with some back-end programming (Javascript/jQuery/AJAX/PHP) and was wondering about a specific task involving (mainly) what I would believe is AJAX.

I was wondering if there is a way to have a page with a starting price of $299 (lets say a basic vacuum) then below that are 20 or so customizable add-ons to choose from through simple checkboxes. That (to me) should be easy enough, but I would love to have the grand total at the bottom of the page be updated in real time as the user checks or unchecks certain add-ons (kind like how apple.com does it).

What is a good starting point for this, and would it be possible to send out the order as an email with the total price sent to the business owner.

View 1 Replies View Related

Auto Update Price Based On Form Fields

Aug 7, 2010

I am more of a front end guy with experience in xhtml/css and want to get my hands dirty with some back-end programming (Javascript/jQuery/AJAX/PHP) and was wondering about a specific task involving (mainly) what I would believe is AJAX. I was wondering if there is a way to have a page with a starting price of $299 (lets say a basic vacuum) then below that are 20 or so customizable add-ons to choose from through simple checkboxes. That (to me) should be easy enough, but I would love to have the grand total at the bottom of the page be updated in real time as the user checks or unchecks certain add-ons (kind like how [URL] does it).

What is a good starting point for this, and would it be possible to send out the order as an email with the total price sent to the business owner. Like I said, I can sorta get my way around this stuff

View 2 Replies View Related

Ajax :: Dynamically Update Contents Of Div Based On Form Fields

Jun 5, 2009

Currently, I have a php form with various inputs, and a div where I am embedding an (initially) empty open flash chart object.Right now, I am calling a php file on the submit of the form, which takes the form data, calls a python script to process the form data, and then creates an open flash chart object using the data the python script returns.There are a few problems with this:

1. When the submit on the form is called, it goes to a different page where the chart is displayed, when I would really just like to update the contents of the chart div where I initially embedded the empty chart.

2. The processing of the form in the python code can take some time, so what I would really like is to have the chart "check" the output of the python script periodically and update the chart each time, adding the new data points to the old ones.

I know I can do all of these things with javascript and Ajax, I just can't seem to find any tutorials or examples that are exactly what I am looking for.

View 3 Replies View Related

Show - Hide Form Fields Based On Checkbox State

Mar 4, 2010

I'm trying to get the two followup questions underneath the checkbox to show up only if someone places a check there, but for some reason the way I've got it set up now it's simply hiding the area I want to show up altogether, and the checkbox has no effect on it.

Rather than waste tons of space pasting it here, here's the pastebin: [url]

Alternatively here is the live version:[url]

I'd prefer to have the form collapse when the additional questions are hidden, though if i can get this working at all.

View 2 Replies View Related

JQuery :: Populate A Dynamic Dropdown List Based On Another Dynamic Drop Down Selection?

Jun 29, 2010

how to populate a dropdown based on Another dropdown selection. This all should be a dynamic. Eg: I have two text boxes one is TechID and other is JOB ID. When I start typing Tech ID it suggests me the list of IDs which start with the input string i have put in Tech textbox. When i select the Tech ID the jobs associated to that Tech ID should be displayed in JOB ID text box as a dropdown list.

View 1 Replies View Related

Hiding Some Fields In Form When We Click One Option In List Box

Feb 6, 2007

In my list box if i select one item corresponding to that 4 fields has
to be appear below the list box and if i select another item only 1
field has to be appear below the list box and if i select another item
no fields has to be selected.

View 2 Replies View Related

Show/hide Elements Of A Form Based On Drop Down Box Selection

Feb 13, 2006

I am setting up a contact form, and want to have a drop down box with a handful of options. Clicking one option should display fields to input username & password, whereas all others will not. So far, I've tried and (replacing 'none with 'block' for the option that is supposed to show the input fields) but neither does what I need it to. I'm fairly new to javascript, just muddling my way through with the aid of tutorials.

View 2 Replies View Related

Displaying Part Of Form Based On List Box Selection

Mar 13, 2006

I have a form with a drop down list box, few textboxes with labels and submit button. depending upon my selection I should be able to show hide textbox; assume items, 1,3,5 in the selection box shows the items other than the listbox and 2,4,6 items in the selction box if selected hides the labels and textboxes. but in all the case submit button should be present.

View 6 Replies View Related

Show/Hide Text And Form Field Based On Drop Down Selection

Jul 20, 2005

I'm trying to show/hide a simple piece of text and a text field on a
form based on what choice is made from a drop down box.

<select name="dropdown" size="1">
<option selected value="">Please make a selection</option>
<option value="1">Choice 1</option>
<option value="2">Choice 2</option>
<option value="3">Choice 3</option>
<option value="4">Other</option>
</select>

i.e. if Choice 2 is selected I'd like to display a new <tr> with the
following:

<tr>
<td>New text field:</td>
<td><input name="newField" type="text size="20"></td>
</tr>

if any other choices are made, I don't want to display anything.
I've tried several onchange() functions but can't achieve what I'm
looking for.

View 6 Replies View Related

Generate A Drop Down List Using A Supplied Xml Form With An Xsl Sheet?

Dec 2, 2011

I'm trying to generate a drop down list using a supplied xml form with an xsl sheet. Because xsl lacks commands that will allow me to create repetitive <options> I am using javascript. A sample xml file that I am using is bellow.

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="a.xsl"?>
<Country>[code]......

View 2 Replies View Related

Form Prefill - How To Change Corresponding Hidden Fields

Jan 25, 2010

I have a form that has 50 text fields and a corresponding hidden field for each of these.
i.e. textfield1 hiddenfield1 etc. When the textfield has data entered it calls a script but I want the script to change the corresponding hidden field but am stuck as to how to do this.
I have the following function which gets called:
function addOptions(currentRole) {
document.addGroup.['use_role_'+currentRole].value='Y';
}
How to get this work work. Where I have ['use_role_'+currentRole] the currentRole should be replaced with the number (1 - 50) so as to change use_role_23 if currentRole is 23.

View 3 Replies View Related

Change Form Based On Previous Input

May 7, 2009

I was wondering if it's possible to make it so that once a user selects a certain option in a list, it makes the next input for that form change to either a textfield or a list without losing the values entered in the inputs above.I know PHP is a server-side script, does that make this not possible?

View 3 Replies View Related

Change A Form Based On Select Option?

May 25, 2009

I don't know if this is something you could do without JavaScript, but anyways... I want to make a drop down menu that changes a form based on the option, like if I chose Option1, it would show Form1 and so on.

View 2 Replies View Related

Change Form Based On Dropdown Selection

Sep 23, 2011

I have a dropdown box with 2 selections(True/False default False) .If false I want to show under it a form like so.

input text
input check
input text

View 9 Replies View Related

Change Hidden Form Value On Drop Down?

Mar 7, 2009

I have a form that sends the value of my input box to search.php where I cature it using POST:

<form method="post" name="boxsearchform" action="search.php">
<input name="INPUT" id="INPUT" type="text" value="" />
<input type="image" name="search" src="searchboxgo.gif" />

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved