Matt,
You might want to check out my wddxFormLibrary and CF_FormWizard tags. It's
a client-side solution, but it will automatically repopulate a form's
content on the client side. There's no need to program in the form field
names either, this can all be re-calculate based upon a structure or an
existing saved WDDX packet.
It's very easy to use: http://www.oacfug.org/users/dswitzer/forms/
-Dan
+--------+---------------------------+
| name | Dan G. Switzer, II |
|company | PengoWorks.com |
| www | http://www.pengoworks.com |
| mailto | [EMAIL PROTECTED] |
+--------+---------------------------+
-----Original Message-----
From: Matt Wisdom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 23, 2000 6:58 PM
To: [EMAIL PROTECTED]
Subject: De-referencing dynamic variables
I have a variable name that is passed as an attribute to a custom tag that
outputs some html (form fields). I want to reference a variable that has a
dynamic name.
The tag is called multiple times, with a different prefix for the form
fields. Here is an example:
The prefix passed to the tag is "Image" (in this example).
The tag appends "SortBy".
The final form name is "ImageSortBy", and it is a pull-down.
I could write a CFIF for each possible prefix:
<CFIF Attributes.VarPrefix IS "Image" AND Form.ImageSortBy IS "TRUE>
Populate the form with true, blah blah blah
</CFIF>
But I would prefer to write this once, like this, if it worked that is:
<CFIF Form.#Attributes.VarPrefix#SortBy IS "TRUE>
Populate the form with true, blah blah blah
</CFIF>
How do I reference this dynamic variable?
Thanks,
Matt
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.