 
 		// set the form to be able to handle file uploads
 		if (!StructKeyExists(arguments, "enctype") && arguments.multipart)
+		{
 			arguments.enctype = "multipart/form-data";
+		}
 
 		loc.skip = "multipart,spamProtection,route,controller,key,params,anchor,onlyPath,host,protocol,port";
+
+		// variables passed in as route arguments should not be added to the html element
 		if (Len(arguments.route))
-			loc.skip = ListAppend(loc.skip, $routeVariables(argumentCollection=arguments)); // variables passed in as route arguments should not be added to the html element
+		{
+			loc.skip = ListAppend(loc.skip, $routeVariables(argumentCollection=arguments));
+		}
+		
+		// need to re-add action here even if it was removed due to being a route variable above
 		if (ListFind(loc.skip, "action"))
-			loc.skip = ListDeleteAt(loc.skip, ListFind(loc.skip, "action")); // need to re-add action here even if it was removed due to being a route variable above
+		{
+			loc.skip = ListDeleteAt(loc.skip, ListFind(loc.skip, "action"));
+		}
 
 		loc.returnValue = $tag(name="form", skip=loc.skip, attributes=arguments);
 	</cfscript>

		{
			loc.onclick = "this.disabled=true;";
			if (!Len(arguments.image) && !IsBoolean(arguments.disable))
				loc.onclick = loc.onclick & "this.value='#JSStringFormat(arguments.disable)#';";
			loc.onclick = loc.onclick & "this.form.submit();";
			arguments.onclick = $addToJavaScriptAttribute(name="onclick", content=loc.onclick, attributes=arguments);
		}
		if (Len(arguments.image))

	<cfargument name="property" type="string" required="true">
	<cfscript>
		var loc = {};
		if (StructKeyExists(arguments, "maxlength"))
		{
			loc.returnValue = arguments.maxlength;
		}
		else if (!IsStruct(arguments.objectName))
		{
			loc.object = $getObject(arguments.objectName);
			if (IsObject(loc.object))
			{
				loc.propertyInfo = loc.object.$propertyInfo(arguments.property);
				if (StructCount(loc.propertyInfo) && ListFindNoCase("cf_sql_char,cf_sql_varchar", loc.propertyInfo.type))
				{
					loc.returnValue = loc.propertyInfo.size;
				}
			}
		}
	</cfscript>
	<cfif StructKeyExists(loc, "returnValue")>
		<cfreturn loc.returnValue>
	</cfif>
</cffunction>

<cffunction name="$formHasError" returntype="boolean" access="public" output="false">
