I'm
not sure I follow your question. You want to count the number of changes
for each fieldname? So if you have a form that has:
1. Y N
N/A
2. Y N
N/A
3. Y N
N/A
Am I
understanding that you want to count how many times the selection in #1 was
changed (eg. if I selected Y then N then Y then N/A, the count would be 4) and
so on for each question? Or are you wanting to count the number of times
the form is resubmitted?
If
it's counting the number of times each form field is changed, that's going to
take something client-side, as CF "lets go" of the page once it's been sent to
the browser. You could use JavaScript to check an onChange and increment
an internal counter than could be sent back to a CF Variable and passed to the
action page.
If
it's the latter then you could set a hidden field that holds the number of times
a user has accessed the form (needs to be a database column) and then on the
action page, update the table with "Number of changes + 1" (assuming that the
first time the form is filled out you set the value to 1, 2 would be set on the
first change, etc.)
Hatton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Houk, Gary
Sent: Tuesday, April 03, 2001 8:45 AM
To: '[EMAIL PROTECTED]'
Subject: Calculating Radio ButtonsHi all,I'm looking for someone to just help to point me in the right direction on this. We have a form with 10 questions, each one being able to be answered either YES, NO, N/A I need to have the form count how many times each one was checked. It can do this either on the form in realtime or on an action page. I have each question's answers set up with radio buttons, but I'm not sure on the best way to count how many times each one was checked.Thanks in advance,- Gary
