Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Carl J #1
Remembering Form data
I'm just wondering, if it's possible for a form to remember it's data?
I have a form with several text boxes, as well as 2 dropdowns, one for
country, and one for provinces and states.
When the user selects a Country, this.form.submit() is called, which basicaly
refreshes the page, and loads up all of the provinces or states for that
country that was selected.
However, if there was any data in the textboxes, it would be lost.
Right now, to restore the data, I'm using:
<cfif form.second_email eq "">
<input type="text" size="20" name="second_email" />
<cfelse>
<input type="text" size="20" name="second_email" value="#form.second_email#"/>
</cfif>
This works, but I'm hoping for something cleaner, or for something that was
made for situations like this.
Thanks,
Jay
Carl J Guest
-
Autopopulated form not displaying data in pdfunless the form field is clicked
Within my online application, I have a pdf form that is auto generated and displayed to the user in the browser. My problem is that the populated... -
file upload form enctype="multipart/form-data
I'm upload a file using cffile upload and that seems to work fine except I need to use enctype="multipart/form-data on the form side. This isn't a... -
Getting client file name from a submitted form usingmultipart/form-data
Ive got a simple form with an type="file" -- all works fine, but what i want to do is get the extension of the file uploaded but not have to upload... -
mx 7 flash form The form data has expired, Please reloadthis page in your browser.
When i first go to any flash form on my CFMX 7 server i get the following message. The form data has expired, Please reload this page in your... -
Template Column data depending on form data
Langauage C# I have a webform containing a dropdown control and a datagrid. A different query is fired depending on the value of the dropdown... -
_jt #2
Re: Remembering Form data
> I'm just wondering, if it's possible for a form to remember it's data?
basicaly> I have a form with several text boxes, as well as 2 dropdowns, one for
> country, and one for provinces and states.
> When the user selects a Country, this.form.submit() is called, whichI usually use something like this> refreshes the page, and loads up all of the provinces or states for that
> country that was selected.
> However, if there was any data in the textboxes, it would be lost.
>
<cfparam name="form.primary_email" default="">
<cfparam name="form.second_email" default="">
<cfoutput>
....
<input type="text" size="20" name="primary_email"
value="#form.primary_email#"/>
<input type="text" size="20" name="second_email"
value="#form.second_email#"/>
.....
</cfoutput>
_jt Guest
-



Reply With Quote

