<SCRIPT LANGUAGE="JavaScript">
function objectShowForm(thisObject, thatObject) {
// Check for invalid object references
if (!thisObject || !thatObject) {return false;}
// Get the selected value
// (currently only works with single selection lists and text fields)
if (thisObject.type == "select-one") {
listIndex = thisObject.selectedIndex;
var value = thisObject.options[listIndex].value; // you can also use .text
} else if (thisObject.type == "text") {
var value = thisObject.value;
}
// Show or hide the hidden field
if (value == "99"){
showElement(thatObject.name);
} else {
hideElement(thatObject.name);
}
return true;
}
function showElement(elem) {
if (!elem) {return false;} // check for invalid object reference
document.getElementById(elem).style.visibility='visible';
return true;
}
function hideElement(elem) {
if (!elem) {return false;} // check for invalid object reference
document.getElementById(elem).style.visibility='hidden';
return true;
}
</script>
<cfoutput>
<cfform>
<table width="900" border="0" bgcolor="CCCCCC" style="margin-left: -10">
<TR>
<td width="115">
<select id="select1" name="userID" size="1" onChange="objectShowForm(this, this.form.optother); selectUser(this)">
<option value="999">Select</option>
<CFLOOP query="getContact">
<option value="#getContact.FUNDING_TO#">#getContact.FUNDING_TO#</option></CFLOOP>
<OPTION value="99">More</OPTION>
</SELECT></TD>
<td width="194"><select id="select2" name="optother" size="1" style="visibility: hidden;">
<option value="999">Select</option>
<CFLOOP query="getContact1">
<option value="#getContact1.FUNDING_TO#">#getContact1.FUNDING_TO#</option></CFLOOP>
</SELECT></td>
<td width="418"><select id="select3" name="optotherPM" size="1" style="visibility: hidden;">
<option value="999">Select</option>
<CFLOOP query="getContact2">
<option value="#getContact2.FUNDING_TO#">#getContact2.FUNDING_TO#</option></cfloop>
</SELECT></td>
</tr></table>
</cfform></CFOUTPUT>
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.