I'm using the CF_TwoSelectsRelated custom tag (which works great), and I'm trying to pass the variable of the dynamically selected variable from the 2nd drop-down box to a second form on the page.  Can't figure out how to do this.  Here's the CF_TwoSelectRelated tag:

<FORM ACTION="" METHOD="POST" require_Selected();" Name="MyOtherForm">
<input type="HIDDEN" name="occname" value="#form.occname#">

  <CF_TwoSelectsRelated
QUERY="readocc"
NAME1="clientitd"
NAME2="occupantid"
DISPLAY1="clientname"
DISPLAY2="occname"
VALUE1="clientid"
VALUE2="occupantid"
FORCEWIDTH1="70"
FORCEWIDTH2="70"
SIZE1="1"
SIZE2="1"
HTMLBETWEEN="<BR>"
AUTOSELECTFIRST="Yes"
EMPTYTEXT1="(Choose a Client)"
EMPTYTEXT2="(Choose an Occupant)"
> FORMNAME="MyOtherForm">

</FORM>

And here's the second form on the page:

<CFFORM name="DateForm" ACTION="" METHOD="POST">
<TABLE border cellspacing=1 cellpadding=1>
<tr>
   <td>Site ID:</td>
   <td>

<select name=siteid>
<cfoutput query="readsiteinfo">
<option value="#siteid#">#siteid# - #sitename#
</cfoutput>
</select>
</td>
</tr>
</table
</form>

Suggestions?

Thanks!
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to