hammerin hankster wrote:

> 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:

There's no passthrough variable in 2selectsrelated to allow you to pass
the selected value in the second drop down and send it to the second form.

Why not use one form? It doesn't look to me that the second drop down
would be related to the site id drop down on the second form and that
you actually want to pass the selected values from the 2SelectsRelated
and the siteID through on form submission.  If this is the case, then
the code below will work fine.

<FORM name="DateForm" ACTION="" METHOD="POST"
require_Selected();">
<input type="HIDDEN" name="occname" value="#form.occname#">
<TABLE border="0" cellspacing="1" cellpadding="1" width="500">
<tr>
    <td>
      <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">
    </td>
</tr>
<tr>
    <td>Site ID:</td>
    <td><select name=siteid>
        <cfoutput query="readsiteinfo">
          <option value="#siteid#">#siteid# - #sitename#
        </cfoutput>
      </select>
    </td>
</tr>
</table>
</form>

Regards

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

Reply via email to