quote:
Originally posted by:
freezer9
Dan - do you mean do the query again and reload the page
after checking for a variable and then fill in the values using CF?
This is what I mean. You start by saying this:
I am running a query to create a dynamic form. I want to copy
the values in one field to another. So far I have this.
For the sake of simplicity let's say there are only two
fields, f1 and f2. You have a value in f1 and you want f2 to either
have the same value or be equal to 0. At least that's how I
understand it.
You are currently using a javascript onclick event to control
the value of f2. This is hard, hence your difficulties. An easier
way is to get rid of f2. Add a check box or radio button for the
user input.
When you submit your form, you want two variables. You
already have the first one, form.f1. The second one either has to
equal form.f1 or has to be 0. Assign that value based on what the
user did with the check box or radio button.