Skip to main content
Participating Frequently
February 18, 2008
Question

List Box Selecting Resets Client Variable

  • February 18, 2008
  • 2 replies
  • 375 views
Does anyone know how I can reset a client variable, client.afid, after a user selects a value from a list box? Pretty much onClick the page will refresh I guess and the client.afid will be changed to the list box selection. I don't know a ton about javascript.
This topic has been closed for replies.

2 replies

Inspiring
February 19, 2008
It's easier for you and freindlier to the user if you do all this stuff when the form is submitted.
Participating Frequently
February 18, 2008
sorry, left the code out.

<cfif IsDefined(client.afid) AND IsDefined(client.custid)>
<select name="client.afid" onclick="location.reload();">
<cfloop query="qrySelectafid">
<option value="#qrySelectafid.thirdParty_id#">#qrySelectafid#</option>
</cfloop>
</select>
</cfif>