Clear form data

Hello everyone, i have a cfform for registration to my site -
the prblem is after submitting the form sucsessfully the data
remains on the form and doesnt clear down.
perhaps you could have a look
here by filling out
the form the returning to it, you will see that you data is still
there, i'm concerned that other users may be able to see other
peoples info ??
so....does anyonw know a way of clearing the form once a
sucsessfull submit has been doen?
cheers zac

ive just realised why its doing this, still need some help
with stopping it though... when someone fill's in my contact form
they are then given the option to register with the site using the
most of the details that they have just filled in on the contact
form. so they click register and they are taken to the registration
form with most of tghe stuff filled in - this is done by quering
the db.
<cfquery name="GetRegDetails" datasource="weblordatabase">
SELECT Max(ID) AS MaxID
FROM contactformtable1
</cfquery>
<cfquery name="GetRegDetails"
datasource="weblordatabase">
SELECT ID, firstname, lastname, company, email, telephone,
fax
FROM contactformtable1
WHERE ID = #GetRegDetails.MaxID#
</cfquery>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>weblor.com... register</title><style
type="text/css">
<!--
h2 {
font-size: 10px;
color: #FF6600;
-->
</style></head>
<body>
<cfform name="registercustomer" method="post"
action="reg_action.cfm">
<table border="0" align="center" cellpadding="3"
cellspacing="0">
<tr>
<td align="center" valign="middle"><label
for="firstnamereg">
<p align="left"> </p>
<div align="left">first name
</label>
<cfinput name="firstnamereg" required="yes"
message="first name is required" type="text" id="firstnamereg"
value="#GetRegDetails.firstname#" size="25" maxlength="100">
</div></td>
</tr>
<tr>
<td align="center" valign="middle"><label
for="lastnamereg">
<div align="left">last name
</label>
<cfinput name="lastnamereg" type="text" id="lastnamereg"
value="#GetRegDetails.lastname#" size="25" maxlength="100">
</div></td>
</tr>
<tr>
<td align="center" valign="middle"><label
for="companyreg">
<div align="left">company
</label>
<cfinput name="companyreg" type="text" id="companyreg"
value="#GetRegDetails.company#" size="25" maxlength="100">
</div></td>
</tr>
<tr>
<td align="center" valign="middle"><label
for="emailreg">
<div align="left">e-mail
</label>
<cfinput name="emailreg" required="yes" message="e-mail
is required" type="text" id="emailreg"
value="#GetRegDetails.email#" size="25" maxlength="100">
</div></td>
</tr>
<tr>
<td align="center" valign="middle"><label
for="telreg">
<div align="left">telephone
</label>
<cfinput name="telreg" type="text" id="telreg"
value="#GetRegDetails.telephone#" size="25" maxlength="100">
</div></td>
</tr>
<tr>
<td align="center" valign="middle"><label
for="faxreg">
<div align="left">fax
</label>
<cfinput name="faxreg" type="text" id="faxreg"
value="#GetRegDetails.fax#" size="25" maxlength="100">
</div></td>
</tr>
<tr>
<td align="center" valign="top"><div
align="left">create weblor e-mail?
<cfinput type="checkbox" name="emailrequired" checked
id="emailrequired" value="yes">
</div>
<h2 align="left">normally [email protected]
</h2>
<label for="passwordreg">
<div align="left">password
<cfinput name="passwordreg" required="yes"
message="password is required" type="password" id="passwordreg"
size="25" maxlength="100">
</label>
</div></td>
</tr>
<tr>
<td align="center" valign="middle"><div
align="left">confirm password
<cfinput name="passwordregconfirm" type="password"
id="passwordregconfirm" size="25" maxlength="100">
<cfif ISDefined("URL.no")>
<p style="color:#FF0000">sorry passwords dont
match.</p>
</cfif>
<cfinput type="hidden" name="group1" id="group1"
value="general_users">
</div></td>
</tr>
<tr>
<td align="center" valign="middle">
<div align="center">
<cfinput type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</cfform>
</body>
</html>
so of course i only want the reg form fields to be populated
in this way if the user is comming from the contact page after
choosing to "register with these details"
hope this makes sence
cheers zac

Similar Messages

  • JSF - How to Clear Form Data

    I have a form.
    Scenario-1:
    Users input data into the form. After I successfully consume and process data, when I click back the HyperLink to the Form - say "Register" - the Register Form still contains the very same input of the previous user. And this happens to all Forms that I have in the Application.
    Scenario-2:
    I return String "success" after processing the Register Form, and I navigate back to the same "Register" Form. Here again, the Register Form contains the old data.
    I have the bean scope set to "session". I cannot set the scope to "request" since I consume data across beans.
    Can someone help me how to clear the [old] data in the forms once I consume the data?
    Thanks in Advance.
    Edited by: Ganesh-Babu-N-R on Apr 12, 2009 11:41 AM

    Ganesh-Babu-N-R wrote:
    I have the bean scope set to "session". I cannot set the scope to "request" since I consume data across beans.Request scoped data belongs in the request scope. I highly recommend you to rethink this approach. You can if necessary split data over beans or make use of h:inputHidden or t:saveState to transfer request scoped bean properties to the next request.

  • Is there any way to recover google searches after clearing form data?

    I cleared Saved Form Information which has erased my Google searches. Is there any way to restore these searches?

    No there isn't.
    Why are you still using that old 1.5.0.12 version of Firefox? That's like almost 4 years old and is missing many security updates.
    http://www.mozilla.com/en-US/firefox/all.html

  • How do I clear old form data?

    When you're filling in forms, as you enter the first letter, all options beginning with that letter appear - allowing you to select one rather than type in an entry.
    Some of those drop down suggestions can get pretty long. How do you remove entries - or clear them?

    From : http://kevmarl.com/2008/10/20/how-to-delete-a-single-saved-form-data-entry-in-mozilla-firefox
    Click on the test entry box form where your data is.
    Press down till you get to the incorrect/old/unwanted entries.
    Press shift+del.
    Repeat for all others.
    Viola!

  • How to clear all data when the form loading at the first time

    hi
    I am using JDevloper 10g and I have adfForm page, I want to clear all data when I load the page for the first time.
    When I did it using RefreshCondition on the pageDef in the executables like(
    <executables>
    <iterator id="FinCompaniesInformaton1ViewIterator" RangeSize="10"
    Binds="FinCompaniesInformaton1View"
    DataControl="AppModuleDataControl" *RefreshCondition="#{adfFacesContext.postback==true}"* />
    </executables>
    the form didn't bring any data but the problem is the field in the form at the run time changed to read only. So how to make it inputText and clear the data inside it at the run time
    best regards
    Tarek Al Soudani

    thank you for your help,my spec is I have ADF Form and I have creat and Edit CommandButton I made it befor also Commite to save.
    so when I run the form the Field should be disabled and there are no data inside it,and when I chose the creat button the fields should be enabled and I have to insert data inside it then I save.
    So I have FinCompaniesInformatonView as view object based on entity object name FinCompaniesInformaton and applicationMoudul.
    I tolde you befor that I made refreshcondition to solve the data clearence problem but the field changed to read only so please if you now any way to leave the fields as inputText whitout make the form as creation form
    beast regards

  • Why does my form data gets cleared out when clicking on the back button.

    Can someone explain why does my form selections get cleared out when clicking on the back button.
    I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
    1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
    I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
    If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
    THANKS.

    the browser doesn't have to remember what you submitted and fill that back in.
    you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there.

  • My form data is not being displayed when signing in to different websites such as Facebook.

    I have tried clearing the history and form data, and I have tried deleting the specific sites that I've been having problems with and still has not fixed the problem.

    Oops here is the jpg - not sure whey so small.

  • I keep getting this pop up. This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location? Can you please help me figure out how to get this to stop!

    This pop up has been occurring about once a minute when I am on certain sites.
    This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
    How do I get it to stop?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History ->'' Time range to clear: '''select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies & Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> Firefox will: select "Use custom settings for history" -> REMOVE Checkmark from "Permanent Private Browsing mode" -> place CHECKMARKS on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Clearing the data buffer from the input fields

    Hi,
    I am using an user exit CONFPP02 for the Tcode: co11n. I have written a program such that the confirmation numbers having the status CNF will not be allowed to be processed. The whole confirmation is terminated when the system checks the confirmation number and its status as CNF. If the status of the confirmation number is PCNF, the program allows the further processing of the Tcode Co11n.
    The problem starts when the user enters the PCNF status confirmation number and enters, the system stores the values in the various input fields. Now without exiting the initial confirmation screen, if the user replaces the Confirmation number of the PCNF status to the Confirmation number of the CNF status , the system issues a warning message:"  Confirmation no. or order/sequence/operation has been changed
    However, the input fields still contain default values from thepreceding confirmation". if the user says yes, the program written is bypassed , thus allowing the reconfirmation of the CNF confirmation number  into PCNF confirmation number .
    Can anybody suggest a suitable method to clear the data stored defultly in the input fields so that the program can be made to work.
    With regards,
    Avinash.S
    Mobile no:09996192456

    Hi Gilad,
    I never use Preview and did not use Preview at all before sending the document over to my most recent client either.
    I only opened Preview up this morning after I discovered that all of the form data had disappeared on his end! And the only reason I opened up Preview was because I already knew it looked fine in Acrobat so wanted so wanted to view the form in a different application.
    My client would not even have notified me about it had he not sent the signed form back to me and I saw there was no data there! I then called him and asked him about the missing data and he said that he thought I had simply sent over the form purposely with blank fields:(
    I have just emailed him to ask him what application he opened it up in. My understanding is that he is on Windows because ne mentioned to me his company was using Windows when we last spoke. Perhaps he has a personal Macbook where he opened it? I just don't know and can hopefully soon find out:)
    But THANK YOU for letting me know about that script! I appreciate it:) I have now downloaded and installed it and will just have to use it on ALL of my forms before sending them out:)

  • Compiling form data: how to add FDF data?

    Hi there
    I've created a PDF form and am testing the distribution and compilation process. I created the form in Acrobat. I suspect most of the end users will have Reader, so after having distributed it through the Acrobat wizard (to myself) I filled it in with Reader and sent it back (the FDF file).
    When I open this FDF file from my email application, it doesn't automatically add it to the data set created in the distribution process. Instead it says that the data file cannot be located and asks if I'd like to browse for it. I do so, find it, and the completed form opens in Reader, not Acrobat. I can get around this by ctrl-clicking in Mail and telling it to open with Acrobat.
    However, when I do manage to get the completed form open in Acrobat it does not add the data to the spreadsheet field at the top. If I try to Import Data, the FDF file is greyed out – it wants a PDF. And if I import the FDF by going to Forms > Manage form data > Import data..., it shows the completed form but not the data in the spreadsheet again.
    So, how can I add this FDF data to the data set and get it to display in the spreadsheet area? Alternatively, how can I save this completed form as a PDF (not a data set as happens if I go File > Save) so that I can import that into the data set?
    I hope I've explained it clearly enough! Any help would be appreciated.

    Priya,
    Preview the iview and try shiftright click or ctrlright click and add the additional fields.
    if it doesnot work then you need to customise the code as per the requirements.

  • Why do I get "The form data has expired." every time with Flash formatted CFFORM moved to CF 9.1?

    We are moving a ColdFusion site from CF8 to CF9.1 and have discovered that any CFForm that was uses Flash as it's format keeps giving us the "The form data has expired." error almost every time we visit the page containing the form.  We have fiddled with the timeout settings and even tried to add the various "cfheader" workarounds that some people have mentioned when getting this error, but to no avail.  To be clear this works perfectly on CF8 *and* it works on our CF 9.1 QA server, but for some reason fails on the Live Server.  Supposedly the Live server completely matches the QA server, but the behavior is sure different in this instance.
    What could be the issues?  What Apache or CF settings might I look into?  Could there be some weird permissions error on the generated swf form file or some other obscure reason?  I am totally in the dark and can't figure out why ColdFusion keeps thinking the form data has expired.
    Please, any ideas would be welcome.
    Thanks!

    Make sure the web server settings between the QA and the Production servers are also compatible.
    I suspect your suspecion about permissions is the closest to the answer.  But this is a little out of my depth of expertise.
    Realize that ColdFusion default behavior is to NOT generate and actual swf FILE.  Rather what it does is generate the swf content in memory and directly deliver it to the client.  But if the web server is configured to look for an actual file system file you may have a clash going on

  • Multipart/form-data and file attachment

    Hi ,
    This question has probably been asked before, but if not then here it is. Any replies will be appreciated:
    Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if user selects no file to attach?
    Q. If no, then how can it be possible that a form can be submitted without attaching a file since when I try to submit a form with no file attached to it, it gives me error message saying :java.lang.NullPointerException
    Q. Does it mean that I can't have a form with a blank "File" input field, if the form's Enctype is "multipart/form-data"? Since users may not select a file to attach to the form, in other words it is an optional.
    I hope I was clear enough in explaining my questions.
    Thanks in advance.

    I am using Orielly's file attachement pacakge.
    Here's what I am doing in my JSP page: It does the following:
    int maxFileSize = 10 * 1024 * 1024; // 5MB max
    String uploadDir = "/direct/files/upload/";
    String FormResults = "";
    String FileResults = "";
    String fileName = "";
    String fileName2 = "";
    String paramName="";
    String paramValue="";     
    File f;
    int filecounter=1;
    first get the form fields using following code:
    MultipartRequest multi = new MultipartRequest(request, uploadDir, maxFileSize);
    Enumeration params = multi.getParameterNames();
    //Get the form information
    while (params.hasMoreElements())
         paramName = (String) params.nextElement();     
         paramValue = multi.getParameter(paramName);
         if (paramName.equals("emailconfirm"))
              emailconfirmation = paramValue;
         else if (paramName.equals("Requester"))
              Requester = paramValue;
         else if (paramName.equals("TodaysDate"))
              TodaysDate = paramValue;
         else if (paramName.equals("Extension"))
    }//end while
    Then it gets the file information using the following code: I have two file fields in my form so that's why I am using a filecounter to find out if user has attached two files or just one:
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements())
         String formName = (String) files.nextElement();
         if (filecounter == 2)
    fileName2 = multi.getFilesystemName(formName);
         String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
         FileResults += "<BR>" + formName + "=" + fileName2 + ": Type= " + fileType + ":
    Size= " + f.length();
         else
         {     fileName = multi.getFilesystemName(formName);
              String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
              FileResults += "<BR>" + formName + "=" + fileName + ": Type= " + fileType + ":
    Size= " + f.length();
         filecounter=filecounter+1;
    Then after composing the mail message I send email with the form fields and file attachments using following code:
    Properties props = new Properties();
    MimeBodyPart mbp1 = new MimeBodyPart();
    MimeBodyPart mbp2 = new MimeBodyPart();
    MimeBodyPart mbp3 = new MimeBodyPart();
    URLDecoder urlDecoder = new URLDecoder();
    String to1 = urlDecoder.decode(toemail);
    String from1 = urlDecoder.decode(fromemail);
    String cc1 = urlDecoder.decode(ccemail);
    props.put( "mail.host", host );
    Session session1 = Session.getDefaultInstance(props, null);
    // Construct the message
    Message msg = new MimeMessage( session1 );
    msg.setFrom( new InternetAddress( from1 ) );
    msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to1, false ) );
    msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( cc1, false ) );
    msg.setSubject( subject );
    msg.setHeader( "X-Mailer", "ExceptionErrorMail" );
    msg.setSentDate( new Date() );
    mbp1.setText(mail_message);
    mbp1.setContent(mail_message, "text/html");
    // Send the email message
    FileDataSource fds = new FileDataSource(uploadDir + fileName);
    FileDataSource fds2 = new FileDataSource(uploadDir + fileName2);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp3.setDataHandler(new DataHandler(fds2));
    mbp2.setFileName(fileName);
    mbp3.setFileName(fileName2);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    mp.addBodyPart(mbp3);
    msg.setContent(mp);
    Transport.send( msg );
    //email sent...
    //delete the two files from the server..
    File f2 =new File(uploadDir + fileName);
    f2.delete();
    File f3 =new File(uploadDir + fileName2);
    f3.delete();     
    //End of code
    So when I don't attach a file and submit my form , I get the error message that I mentioned in my previous post.
    Any more ideas?

  • How do I stop the box "This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?

    I have cleared my cookies and cache and disabled some add ons, but when in Facebook and specifically for Farmville, I keep getting the pop up box, "This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?" I have closed and opened the browser, too and it still keeps coming up.... Please help!!! Thanks.

    You can't avoid that if the website is coded that way and data needs to be send from one server to another server.

  • Reset form data, show records page by page,  disable delete link if 1row

    1. When u click on a Reset button complete form data should be cleared. How to achieve this
    2. I have some of the records displaying data.. i got a delete button from datacontrol opertions tab... I need to disable this delete button when the number or rows displayed is only one. how can i achieve this
    3. After a search criteria is performed i need only 20 records to be displayed showing 1-20 then there should be a link on next which can take me to next page where i need to show the next set of 20 records .. just like the feature we have in gmail

    Hi,
    Try this code:
    // reset all the child uicomponents
    private void resetValueInputItems(AdfFacesContext adfFacesContext,
    UIComponent component){
    List<UIComponent> items = component.getChildren();
    for ( UIComponent item : items ) {
    resetValueInputItems(adfFacesContext,item);
    if ( item instanceof RichInputText ) {
    RichInputText input = (RichInputText)item;
    if ( !input.isDisabled() ) {
    input.resetValue() ;
    adfFacesContext.addPartialTarget(input);
    } else if ( item instanceof RichInputDate ) {
    RichInputDate input = (RichInputDate)item;
    if ( !input.isDisabled() ) {
    input.resetValue() ;
    adfFacesContext.addPartialTarget(input);
    }

  • What is process form data in controller

    hello friends,
    what is process form data in controller? i can not see process form data when i created controller, what is the significance to use process form data in controller?exactly which scenario we can use in our OAF application?
    as per jdevguide, i could not clear this below.
    In most -- if not all -- of the pages that you build, you will have no cause to overwrite this method. In fact, the only use case we could think of is extremely unlikely in an OA Framework application: if the data source for a region is not a view object, so the view instance and attribute properties are not defined for the individual web beans, then you could code the region's processFormData() to write the child web bean data to the appropriate data source. Note: The OA Framework implements processFormData() at the item level, but you can overwrite it only at the region level, so you must process all of the region's items if you ever implement anything like this. If you do choose to implement something like this, remember to call super.processFormData(OAPageContext pageContext, OAWebBean webBean) first.
    Thanks
    krish.

    Announcement: Forums Etiquette / Reward Points
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
    - When answering a question, please be courteous; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
    - When answering a question, please be courteous; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN

Maybe you are looking for

  • Adobe Creative Cloud installer crashes on launch

    This is my scenario: 1. Sucessfully installed and ran CC with PS, Lightroom etc in OSX 10.8 2. Cloned the disk since I was switching to a new SSD 3. CC or any of the Adobe apps did not launch any more 4. Removed all adobe apps with the app "Adobe Cre

  • Connecting guitar to computer

    I'm just starting w garageband. I have a Mac Powerbook G4, a fender electric guitar and a fender cybertwin amp. The amp has various jacks: midi in, midi out, midi thru, xlr r & l lines out, spdif output for connection to digital equipment such as a d

  • Class loader and verifier

    Hello, I am trying to write a application that will be able to load unknown classes and find out their methods and fields. My problem is that i don't know how to extraxt the necessary information(methods, fields) from the classes. The first answer wo

  • Install Info Object 0BSTAT from business content

    Hi Guys, I am trying to install info object 0BSTAT from business content , i have selected the options                              grouing "only necessary obects"   "start automaticall" "Hierarchy" ad dragged info obect from left side into collected

  • Hiding Selected Slides in the Outline Pane

    I have some slides that I'd rather not have show up in the pane. For example I have 5 slides with the same title, I don't want to have 5 of the same name showing up in the outline pane, I only want the first slide. I know you can hide slides in Power