Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Dynamic Form Question

Reply
Thread Tools

Dynamic Form Question

 
 
Emmett Power
Guest
Posts: n/a
 
      06-24-2004
Hi,

I have a problem that has me stumped and I wonder if somebody has a
suggestion or workaround for this problem.

My objective is to let the user enter the details of organisations
he/she has worked with and then to rank them on certain parameters. I
don't want to restrict the user to a list of organisations.

To achieve this I have one a number of linked web based forms:

On form1 there are six free text boxes where the user can enter the
names of organisations that he/she has worked with.

On form2 the user is presented with the list of organisations that he
has entered and asked to rank them. The form is populated using a
script that loops through the user's selection from the database and
creates data entry fields for each option.

One the data validation page I capture the information from form2
using the following script:

<%

arrSelectionID= split(request("SelectionID"),",")
arrReputation= split(request("Reputation"),",")

for i = 0 to ubound(arrSelectionID)

vrsSelectionID = arrSelectionID(i)
vrsReputation = arrReputation(i)

sqlString = "UPDATE Selection SET
Reputation='"&Trim(vrsReputation)&"'WHERE SelectionID
="&vrsSelectionID&""

%>

forms3 and so on replicate this process asking the user to rank on
other characteristics.

So far so good.

Here's the problem. I would like the user to be able to use option
buttons to select a value for each organisation but the buttons
created by the loop script have the same name for each organisation
which doesn't work.

I've tried tick boxes to get around that problem but the
split(request("Reputation"),",") is thrown if the user does not select
one option and one option only for each organisation.

I can use a drop down box instead of option buttons to force one value
per selection but I don't like using a lot of drop down boxes in a
form because I think that users quickly tire of click-dropdown-select.

I hope that the explanation of my problem makes sense.

I'd appreciate any suggestions for a work around or a simple solution.
I don't mind forcing the user to enter the data with a JS validation
script if I could construct one that was able to handle the dynamic
elements of the form.

Thanks in advance.

Emmett Power
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
A nested dynamic checkbox inside my dynamic form. pizzy Javascript 5 04-12-2005 02:55 PM
Revised: A form -to- dynamic form -to- dynamic checkboxes pizzy Javascript 7 03-23-2005 10:53 PM
How to have a nested dynamic checkbox inside my dynamic form. pizzy Javascript 0 03-23-2005 03:32 AM
Dynamic Form with a Dynamic Form inside it... pizzy Javascript 4 03-18-2005 05:10 AM



Advertisments