I am thomas. This is my first post I have a question. I am trying to make a dynamic form. I have seen this addressed in a few other threads, but it is first of all not exactly like my problem and also, the language of the explanations is not simple enough for me to understand.
I am trying to make a form that has 1 box that asks how many designs a customer wishes to order, then based upon that number, reveals that many pairs of text boxes below; one should be with the label, �name of design, while the other should be with the label quantity of design. That way, if a user enters 4, four pairs of these boxes will appear, asking him specific names and quantities
If I set up a variable quantity to the value of the text box, I think I should be able to loop like,
for x=1; x<=qty.value; x++ but then I am confused about how to make the thing render the text boxes. My primitive knowledge tells me I could do something like document.write. But on another thread I read I saw that I could also use
for example, from the above, I want a JS array for 'option-1' that contains KA-WH, KA-BK and KA-GN; plus an array for 'option-2' that contains BADGE-1, BADGE-2 and BADGE-3. The above form fields will be created dynamically, may contain more or fewer items.
I then want to use the JS arrays to pull in images of which filenames match the 'code' in the array.
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.
I wanto make a custom slideshow generator, and that users can add their image links. Now the problem is i don't wan't to limit my users to let's say 5 iage links, i would like to make somthing that will alow them to add as much input fields as they won't and then when they submit that they get the proper slideshow code with as those fields. so if anybody now's how to do this i would me more thank thankfull.
Am integrating a Barclays epdq shopping cart into an existing website, part of the regulations with this system is that you can only submit from one 'allowed url'. To enable access from multiple url's I need to create a 'jump page'.
This needs to be a simple page that takes any variables posted to it and re-posts them (onload) onto the epdq shopping cart.
The problem is I am unable to populate the form dynamically and submit onload. I have tested and it all works fine if hardcoded. :confused:
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.
Im trying to create some amendments within some form fields as the files that need to be adjusted in the php scipts are encrypted. so im forced to use a work around. I'll explane best what i want to do via the very simple php script below.first the form fields (all field names are related to there php objects)
---------------------- <--! this is the "title" field --> <td><input type="text" name="title" style="width: 100%" value="we are her" /></td>[code]....
I have a set of input fields that can be dynamically duplicated/cloned or removed and submitted. I'm looking for a ways to configure the form for easy processing without having to loop through each input field inside the divs:
What I am trying to do is: 1) Have times populated in 15 minute incrementals from 12:00AM to 11:45PM 2) Have some type of "error checking" available to where the End Time must be after the start time. It would be nice for the script to automatically change the end time field to a time that is after the start time.
I spent several hours struggling with dynamic form fields added with appendChild or innerHTML not POSTing on submit in Firefox. The only way I found to make it work is to append any created fields to a DIV within the form. Code:
I need to create a form that expands or collapses with more or less fields to fill in when the user selects or deselects a check box on it. This form also needs to be secure. What is the best way to accomplish this?
I have used this piece of code which is working great. It allows me to add different items from combo boxes to my order form. The problem is that i dont know how to extract the data from my db to display in a form view when i want to amend the i.e the number of items. Each record has a different number of items in it but are all lnked to one id. Is this possible to do. Any help on this would go along way.
I've created two form fields (username, password).When a user comes to the page, the word "Username" is shown in the first form field. The word "Password" is shown in the second field. When a user clicks inside the field, the word inside the field erases automatically, allowing them to type in their username. Everything above is working, except I'm running into some problems.
1st: I need to figure out a way to include an if statement, that displays "Username" once again, if they did not type anything in the username field, and they clicked outside of the field. This will be the case for the Password field as well.
2nd: If a user types in their username in the username field, then types in their password, but clicks on the Username field once again to fix a typo, it completely erases their username from the field, making them have to type it all again.