The method the browser uses to send the form data to the server: - post: Send the data using the HTTP post method, This method sends the data in a separate message to the server. Values: post get. All controls are in Flash format. Values: html flash xml. Values: haloSilver haloBlue haloGreen haloOrange beige blue bluegray lightgray red silver none default basic basiccss. When the cfform action attribute posts back to the same page as the form, this determines whether to override the control values with the submitted values.
|Published (Last):||3 August 2014|
|PDF File Size:||7.22 Mb|
|ePub File Size:||12.47 Mb|
|Price:||Free* [*Free Regsitration Required]|
Forms tags. Note: You can specify this tag's attributes in an attributeCollection attribute whose value is a structure. Specify the structure name in the attributeCollection attribute and use the tag's attribute names as structure keys.
The following table lists attributes that ColdFusion uses directly. Specifies whether to include support screen readers in the Flash form. Name of ColdFusion page to execute when the form is submitted for processing.
If you omit this attribute and the method is get, the form posts to the page identified by the CGI. If the method is post, the form posts to the page identified by the CGI. The height of the form. Use a number to specify pixels.
The displayed height might be less than the specified size. Note: The width and height attributes are required for Flash forms, if they are used inside of a table. A name for the form. For Flash format forms: Applies only for onSubmit or onBlur validation; has no effect for onServer validation.
An ActionScript expression or expressions to execute if the user submits a form with one or more validation errors.
This attribute is useful if the file is not in the default location. Flash: Use a halo color to stylize the output. The skin determines the color used for highlighted and selected elements.
Styles to apply to the form. In Flash format, must be a style specification in CSS format. Integer number of seconds for which to keep the form data in the Flash cache on the server.
A value of 0 prevents the data from being cached. The width of the form. Specifies how the Flash form appears relative to other displayable content that occupies the same space on an HTML page. They are, however, included in the generated XML as html namespace attributes to the form tag. This tag requires an end tag. This can prevent users from getting "The form data has expired. Please reload this page in your browser" errors if they use the browser back button to return to the form.
Note: In Flash format, if you do not specify height and width attributes, Flash reserves browser space equal to the area of the browser window. If any other output follows the form, users must scroll to see it. Therefore, if you follow a Flash form with additional output, specify the height and width values. The width and height attributes are required for Flash forms, if they are used inside of a table.
They are not available in Flash format:. When you use such a structure, you do not want submitting form information to cause a new page to be displayed; instead, you want dynamic code to modify the existing page without causing a complete reload. This function is responsible for updating the pod, layout, or window to reflect the results of the submission, for example, to display additional data or pop up a confirmation window.
This function is responsible for handling the error, such as displaying an error message. This function must take two arguments: an error number and an error message. The following example shows a simple XML-format form. It uses the default. ColdFusion User Guide. Select an article: Select an article:. Applies to: ColdFusion. It might not work, and might cause an error, in later releases.
Changed integer validation to require an integer value. In previous releases it would convert a floating point value to an integer. Attributes The following table lists attributes that ColdFusion uses directly. Flash: generates a Flash form and send it to the client. All controls are in Flash format. For more information, see the skin attribute.
This method sends the data in a separate message to the server. Applies to these controls: cfinput, cfslider, cftextinput: overrides the value attribute value. See cfselect. If yes, expands previously-selected elements. The cftree completePath attribute must be set to yes. This avoids confusion as to whether data has been resubmitted to the database by the control.
Can be any of the following: ColdFusion skin name: applies the specified skin. XSL file name: applies the skin located in the specified path. In this case, do not specify the. If the Flash form is above any item, transparent regions in the form show the content that is below it. If the Flash form is above any item, it blocks any content that is below it.
Usage This tag requires an end tag. If attribute value text must include quotation marks, escape them by doubling them. If you omit the attribute, Flash displays a dialog box with all applicable error messages.
Your ActionScript can use the errors variable to determine the fields and errors. A simple XML form. A simple PDF form. The method the browser uses to send the form data to the server: post: sends the data using the HTTP post method.
Subscribe to RSS
Forms tags. Some attributes apply to only specific display formats. For details, see the Attributes table. Note: You can specify this tag's attributes in an attributeCollection attribute whose value is a structure. Specify the structure name in the attributeCollection attribute and use the tag's attribute names as structure keys.
The cfform tag requires the client to download a Java applet. Downloading an applet takes time, so using cfform may be slightly slower than using a simple HTML form. For cfform to work properly, browsers must be Java-enabled. Attribute Description name Optional. A name for the form you are creating. The name of the ColdFusion page that executed when the form is submitted for processing. This works as expected for the cftextinput and cfslider controls.