Basically, I have 2 separate drop-down lists, we'll call them List1 and List2.
Say List1 contains:
Fruits
Months
Sex
Now, I would like all 2 lists to be on the same page. A user would proceed to select something from List1, say "Fruits". Upon clicking on the drop down list for List2, the list items should automatically be updated to predefined items, say "Apples", "Oranges" and "Pears".
if the user changes his mind and goes back to select "Months" from List1, List2 should immediately display stuff pertaining to List1 items, say "January", "February", "March" etc etc....
I am stuck trying to validate a group of dynamicly created radio buttons.
http://forums.aspfree.com/images/icons/icon6.gif
i need help in calling the groups that are being generated since the number of groups depends on the first page, where the selections are made I am using a for loop to generate each group of radio buttons. each group holds three radios I am not good with javascript.
I have a group of radio buttons with the same name (which are in turn generated by the database). Since they share the same name, I can select only one of them.
Now I have another radio button which is not a part of the above group, but this radio button opens up a report which has different set of parameters to open a crystal report.
Now I want to know how to select only one radio button. Either from the group or this single radio button. User can select only 1 radio button at a time. Code:
i'm having some difficulty coding my dropdown menu's on a page, i want the contents of one to be dependent upon the value of the selected option of another.
i was trying to find a way to link my pull-down menu with a column in a table in Microsoft Access using ASP. As I add new records to the database, I would like the pull-down menu to update also.
Once the submit button has been clicked, a table is inserted into the page with the information from the row in the database.
what i want to do is when the user clicks on one of them show a different form if the user selects cars show cars forms this form will have different fields and different validation if the user clicks on trucks show trucks form and that will have different fields and so on
I have a form for editing data and it has a set of radio buttons, what I need to know is how I make the correct radio button be ticked when I load the form. Code:
I have 2 radio buttons, Yes and No. I have a text box with a value entered by the user. If the user selects the Yes radio button, I need to add 339 to the value they entered. They will submit the form to add the value...but the problem I am getting is, it keeps adding 339 more than once. If there is also a way...where they select yes and submit and go back to no...to set the value back to the value they entered.
How can I add 339 to a value the user entered without continuing to add 339 if the form is submitted multiple times?
I want to genarate radio buttons using array variables and for loop .what is wrong with what i have done ,help me with the correct syntax for it. I hope I,ll be able to convey you what i want to achive by the below code
Is it possible to change the values MOTM and Alan to variables that are stored in my asp page so that I can refer to them in code? If so, can you someone give me a pointer as to how to do this or where to find the documentation to read up on this please?
I've made a content managment system that uses icons to represent page layouts. To choose a different layout, the user clicks on a radio button associated with each layout icon. On click of one of the radio buttons, the form submits and a new layout is chosen.
I would prefer if people can click on the icons themselves , rather than using the radio buttons.The border or background associated with the selected icon can highlight conditionally, based on a DB lookup. The highlighting will indicate the selection.
I know how I could do this "by hand", associating each image with code that would initate an insert to a database.
I would prefer it if I just bolt the image onto the existing structures in HTML that manage radio buttons, and sub an image for the button.
I seem to recall there is a way to do sub an image for the button. Can anyone show me the syntax? Code:
I have a number of names in a database and I need to connect these names to radio buttons. Basically a voting system. Users need to choose one of the options and the option they choose gets added to the total number of votes for that person.
I hope you understand what I'm trying to say. Anyway, I'm using Dreamweaver MX 2004.
I got 2 radio buttons which has common name of division and value of --> yes and no. How to retrieve information from radio buttons from the form.
like if my radio button --> yes is checked , I want it to show yes on my page when i have submitted my form. what do i have to use ... --> request.????? Do i need to use arrays to retrieve info?
I am in the process of building a Simple Survey, and I am having trouble getting started. I have put together my html form, and now I need to build my "survey.asp" page to communicate with my Access database. I have designed my database to have 3 tables: Department, Contract, Survey.
Basically from each question the Survey Table will be populated. The survey table is in this format [SurvID (prim key), ques1, ques2, ...contractID.]
So if a user on question 1 clicked radio button "1radio1" then the number one should populate "ques1" field etc. Same goes for question 5, if the user chooses "5radioN" then "N" would populate the "ques5" field.
Also on there will be a drop down menu on the top of the page where the employee can choose the contractID. How would I incorporate that as well? Code:
I'm hoping there is a way to do what I am trying. I have an asp page with 3 radio button choices. Depending on which radio button the user selects, I want to populate some drop down menus with different choices. I have the case statement for the drop down boxes. Problem is, the html value from the radio button isn't actually used until you submit the form, so the case statement isn't finding any information to use to populate the menus. Does that make sense? So is there a way to make the radio button selection an immediately usable variable on the same page?
I am working in ASP.NET and I do have groupname of TrainReport for all of my radiobuttons. I have found lots of documentation of how to put groupnames in radiobuttons. What I have not found is how programmically I can use the radiobutton groupname in the code to distiguish between the radiobuttons.
In VB 6.0 the group of radiobuttons would have the same name and would be refered to in an index by the order of the buttons. TrainReport(0), TrainReport(1), TrainReport(2), etc. I could use case statement on the index.
Case 0 would be if TrainReport(0) was selected and I would have code I want to do if this was selected, Case 1 would be if TrainReport(1) was selected and I would have code I want to do if this was selected, etc.
I have not found in documentation in Visual Studio, google searches, etc. a useful purpose of radiobutton group names.
I have 2 radio buttons & 2 combo boxes.how can i change the combo box to enabled state only when the radio button associated to it is checked? I want this to happen at once (without having any submit buttons).
I have a form on a web page with a number of radio buttons bound to the same field. Is it possible to set up the form so that users can select more than one radio button to submit multiple values to a field in the way that you can, for example, in a drop down field?
I need a script that will allow users to select various answers using radio buttons and text fields and then able to submit to my email address. Any ideas?
I’ve a few radio buttons; few of them have input textboxes and dropdown list. I use Select case to insert values (depend on which radio button that you've selected) into the sql db but it doesn’t work. Then I use if, elseif and else…the value of radio still doesn’t insert into the DB. In this case how can we insert the value(s) into the DB? Code:
I am bringing in a repeated field from a database and I would like to assign values to radio buttons to be associated with each record. The number of repeated fields will be different for each person, so I cannot enter values for each repeated record. I need a way to assign a variable as well as a value to each record that is being brought in from the database. For instance:
Radio Button Value 3 4 5
Repeated Record 1 O O O Repeated Record 2 O O O Repeated Record 3 O O O
I had received some great code from Memnoch, but it created one group for the entire Repeated field, so I was only able to select one radio button for all of the repeated fields. I need to select them seperately and I then need to Request the variable so that i can add, multiply and divide that variable with other repeated variables.
I have a simple add/change/delete feature going on. I have a products table that I'm selling mock products from. I have a column named category, which users either select baseball or basketball from the radio buttons on a form. I can't figure out how to make this work. I'm implying that the code is working, the record is adding to the database, just not the category field, and when I display all the fields out of my database onto a html page the category field is blank. Below is the code I have.
It s very basic question..but stil i am getting a bit confused.I want to have two radio buttons which can be selected as well be deselected. The value shud be inserted in the DB.
How should i go on doing this. Also if i want to see my selection when i return back to the order page..how should i pull it from DB and display the radio button with the dot in it(checked )?
not sure the best way to achieve this but basically i would like to have two sets of radio buttons. The first set determines whether the field DateFrom is todays date or a date entered
and the second set determines whether the field DateTo is todays date or an entered date So far this is what i have got and its not working Code:
I have a form with two drop down list. I need the list items to vary by what I select. Ok..short and sweet. I have a list of dates in one....in the other I have a list of events. If I select a date in the first drop down I only wanna see the events for that day. Also if I select an event I only wanna see the dates for that event! What is the best way to go about doing this....and please dummy it down for me...I suck at sql to be honest.
I have found in the forum examples or 2 dropdown lists and 3 dropdown list. Does anyone have any idea how to do 4 or more dropdown list? I tried to modify it from an example script found here but failed. Code:
I have to populate a drop down list from the database depending on the values of another drop down list. And the thing is it should also be able to add more dynamic dropdown lists to it.
Basically is a survey result page for which the one trying to look at the survey has to figure out different criteriaz.
Suppose he's looking for a group of people who are interested in buyin a stuff and then he wants to find if their age is above or below 50 and then further he decides to see if they are employed or not...
I did try a couple of things such as populating a dropdown list in a new page depending on the values passed on by previous one... but was hoping to find a better solution as the one i m workin is tooo complex and tooo complicated.
Does anyway know the best way (preferably usinge ASP and avoiding the use of Arrays) how to achieve the following:
I have an ASP page. In it, I have a FORM that contains 2 Radio Buttons and a Drop Down List. I need to have the values of the Drop Down List change depending on which Radio Button is selected by the User.
(I thought that maybe some sort of code acting on the OnChange action for the Radio Buttons might work??).