tracker issue : CF-3038824

select a category, or use search below
(searches all categories and all time range)

Bug 77749:(Watson Migration Closure)CFForm error when Return key is pressed

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Jeff Doktor / Jeff Doktor (devJT1)

Created: 06/05/2009

Components: CFForm, Standard XML

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 0


CFForm error when Return key is pressed. CFForm opens a window within a window when the return key is pressed. It works fine when the input button is pressed. Our work around is to disable the return key.
Here is our code:

				  // Disable having the form submitted by hitting 'enter' while 
          // typing in the input box.
				  function captureReturn (evt)
					  var charCode = (evt.which) ? evt.which : event.keyCode;

						// Catch returns, so they don't submit the form
						if (charCode == 13) {
						  return false;

						return true;
					style="border:solid thin;background-color:##e5e5e5;padding-top:12px;padding-bottom:12px;padding-left:12px;padding-right:12px;width:340px">
					  <cfform name="collabSearchForm">					  
			            <cfselect name="collabSearchCategory">
			            	<option value="">Select</option>
							<option value="Productivity">Productivity</option>
							<option value="Policies">Policies</option>
							<option value="Procedures">Procedures</option>
							<option value="Solar">Solar</option>
							<option value="Wind">Wind</option>
							<option value="Hydro">Hydro</option>
							<option value="Geothermal">Geothermal</option>							
						<cfinput onkeypress="return captureReturn(event);" type="text" name="collabSearchValue" /> &nbsp;&nbsp;&nbsp;
						<cfinput type="button" name="collabSearchButton" value="Search" />

type in anything in the search field and press return. A window opens within the form. If you press Search, then it works properly. 

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3038824

External Customer Info:
External Company:  
External Customer Name: Jeff Doktor
External Customer Email: 753E585344BBDE7B9920157F
External Test Config: 06/05/2009