I don't think you can "embed" forms. Maybe someone else has a better solution, but here's a few thoughts.
I would do as I stated earlier, maybe with the addition of a check box that says, "Other Fruit". That way, you only have to check for the existence of the check box...
The only way (that I know of), that ColdFusion can evaluate the value of a dynamic variable is to do the following:
<cfif (len(trim(evaluate("form.GSub_FName" & GiftNum))) EQ 0) OR (len(trim(evaluate("form.GSub_LName" & GiftNum))) EQ 0)>
I believe the evaluate() function...
If I understand you correctly, you have a drop down list of fruits. You want the user to have the ability to add a fruit, if it is not found in the drop down list. Correct?
I would just add a text field (maybe "otherFruit"). Then on your action page, check the value of...
Are your form field names and database column names the same? I've not used cfupdate much, but I think the names have to be the same.
You could probably use sql. This is off the top of my head, and could probably be written a little neater (maybe using cfloop to loop over your fieldnames)...
Check the Developer's Exchange. I've downloaded several in the past. They should point you in the right direction.
http://devex.macromedia.com/developer/gallery/
HTH,
Brad
To do it with CF, create a hidden field for each field in your form. The hidden fields will contain the data from your query. Then, on the next page, compare each field to the relevant hidden field. If any of them changed, do an update.
You could probably combine Javascript and make it a...
In admin_check.cfm, set a client variable after you have validated the user. Something like: <cfset client.loggedIn = "true">
Then, make your third page (third_page.html) a CF page, instead of a html page. Just change it to "third_page.cfm".
Finally, in third_page.cfm...
There's several ways you can do this.
If your first query only returns one record, don't specify query="UpdateDealer" in your first cfoutput tag. Then you will need to scope your variables (as a previous user suggested). To do this, use #UpdateDealer.Fi_speed# instead of just...
I tried both and couldn't get it to work. The questionable code is below. I took out everything that was irrelevant. I'm executing this code in IE 5.5 if that makes a difference. Again, I really appreciate your help.
<html>
<head>
<title>Test</title>
<script language="JavaScript"...
I've tried this, but it doesn't work.
for (a = 1; a <= document.wiz.elements.length; a++) {
if (document.wiz.elements[a].style.display != '') {
document.wiz.elements[a].focus();
break;
}
}
I get the error: 'document.wiz.elements[...].style' is not an object.
Thanks for your help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.