Reset the form to Null or Reload the page using reset even after a submit

Hi ,
This is the scenario:
I have two button - Submit and Reset
Submit is used for validation and after validation is passed it passes it to another form to enter into database.
Bascially the reset works fine if I use it before using the submit button in the form. For instance,if on submit there is some error as the values have not passed a validation. There is a error pop up message shown and the values are retained in the field and Now if I use reset , all the values of the field do not go back to null.
I am new with form validation. I checked online and it said that reset will not clear if we have used submit and we need to use javascript to do it.
So I made reset into a button which onclick event calls the reset() function and clears the form but I am sure that the code is not right as it is not working, I tired putting a alert message in my function to reassue that the function is being called but I think it is not.
Posting my code
<INPUT id=reset1 name=reset1 type =button value=Reset onClick="reset()">
<Script>
function reset()
alert ("all values shall be cleared now");
document.frmUser.name.value = "" ;
document.frmUser.uservalue  = "" ;
document.frmUser.contactNumbervalue  = "";
document.frmUser.emailvalue  = "" ;
</Script>
I am not sure if its the best way to do it.
I want the whole form to refresh/ reload every time reset is clicked and all the fields to have no values.
Thanks for the help in advance.
Sumant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hi .
I got break on this issue by following the code snippet
<script >
function clearForm() {
document.getElementsByName('foo')[0].value = '';
document.getElementsByName('bar')[0].value = '';
document.getElementsByName('baz')[0].value = '';
</script>
<html:button value="Clear" onklick="clearForm() />
thanks,
Sumant K

Similar Messages

  • The form cannot be submitted to the Web server either because your computer is offline or because the host server is currently unavailabl. If this problem persists, contact your network administrator.

    Hi,
    When the page is submitted for approval by using SharePoint OOTB Page Approval Workflow, it takes quite long time and prompt error message as below.
    "The form cannot be submitted to the Web server either because your computer is offline or because the host server is currently unavailable.
    If this problem persists, contact your network administrator."
    It only happens in Internet Explorer version 8 and 9. IE version below 8 is not used in environment.
    But it is working in Firefox.
    Please help me on how to fix this issue.
    Thanks.

    Hi Htet,
    Here are some articles with the same issue message, you can check the setting of Link Translation rule in the ISA from below.
    http://sharepointontop.blogspot.com/2012/06/form-cannot-be-submitted-to-web-server.html
    http://bytelab.blogspot.com/2008/03/problem-submitting-infopath-forms-using.html
    http://social.msdn.microsoft.com/forums/en-IE/sharepointcustomizationprevious/thread/84be34b3-b806-49ce-a5c2-b5ad8a1ff09f
    Thanks
    Daniel Yang
    TechNet Community Support

  • I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?

    I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?  I have read other forums on burning HD DVD's but I do not see the option to turn the 8 pi into 40 pi the one forum recommended.  I want my DVD to be HD so I may sell these videos online for my business.  I can't sell them the low quality they are burning now.  Hopefully you can help me.  Thanks.

    desalvom
    Thank you for your reply.
    You cannot burn your high resolution video that you can view on your computer to an AVCHD on DVD disc
    that will replay through a regular DVD player. But players are marketed under a variety of names with
    different support opportunities. One manufacturer may call its product MultiMedia Player, media player, Blu-ray player,
    etc.The bottom line is the specifications for each of the players that are candidates for the playback of
    the AVCHD format on DVD disc or the format of interest.
    If you upload your HD (1920 x 1080) video to YouTube, YouTube converts the video to flash format, but it goes up as the HD video.
    But, beware. Look at the YouTube viewing setting when your uploaded video is playing back. The YouTube default is not
    HD. It might be 360p, 480p. If you have a 1080p video, then before the YouTube playback, you should be looking
    at the video with the YouTube 1080p HD setting for best viewing. That is a YouTube matter.
    Best results depend on you
    a. setting up the Premiere Elements project preset to match the properties of the source media. That means, if
    you have 1080p source, you (manually) or the project (automatically) set the project preset at
    NTSC
    DSLR
    1080p
    DSLR [email protected]
    or the PAL counterpart, depending on your region need.
    b. if you upload your video to YouTube using the Premiere Elements feature, there is a HD preset, but you cannot
    customize it.....if you need customization, then you can export your Timeline to a file...in this example
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 H.264 1920 x 1080p30 or PAL counterpart
    and then customize the preset under the Advanced Button/Video Tab of that preset. In increase quality, you might look to increase
    the Bitrate under Advanced Button/Video Tab settings - without compromising the file size.
    Then you would upload that file to YouTube at the YouTube web site.
    All of the above are factors that need looking into in order to determine the why for what you wrote
    I have published a shortened advertisement video to YouTube- say 5 minutes-
    and it is low quality
    Often SD video upscaled to HD can present poorly. But, you are dealing with a HD workflow so that should not be introduced into the matter. The setup of the project and
    the properties of the source video are important, but let us start with the above and rule in or out those considerations first.
    Thank you. As always, any clarification needed, please do not hesitate to ask.
    ATR

  • A word document was emailed to me.  I can open the document without a problem.  Is there a way for me to type on the document.... to fill out the form?  When I click the fields, the virtual keyboard does not appear.

    A word document was emailed to me.  I can open the document without a problem on my iPad 2.   Is there a way for me to type on the document.... to fill out the form?  When I click the fields, the virtual keyboard does not appear.

    If you want to edit a word document then you will need an app on your iPad that supports word so that you can copy them to it via 'open in' e.g. Apple's Pages app or a third-party app such as Documents To Go or QuickOffice HD

  • I've created a PDF form using Adobe acrobat. I created the forms from a PDF that I made using pages

    I've created a PDF form using Adobe acrobat. I created the forms from a PDF that I made using pages and word on Mac running Mountain lion. How do I allow the user of the form to insert JPEG files when filling out the form and how do I allow the user to add more fields or groups of fields as needed.

    The type of form yo're describing is possible if you create it in LiveCycle Designer. It may also be possible in Acrobat, but there are certain restrictions. The type of form is known as a dynamic XFA form. LiveCycle Designer is not available on the Mac, so you'd have to install the software on a Windows machine and learn how to create this type of form. The LiveCycle Designer forum here is a good resource for getting more help.
    Reader 11 now supports creating new pages using templates with a form that you create in Acrobat (Acroform). This requires some JavaScript programming. It also adds support for using a button to display a page from a PDF, which can be an image or anything else a PDF can be. So the user would click a button, be prompted to import a page from an existing PDF, and the button (or a different button) displays it as its icon. This would require the user to convert the image to PDF first, which is relatively easy these days (e.g., using Preview on the Mac, or Word on Mac/Windows). This too involves a bit of JavaScript programming, but it's very simple and straightforward.

  • Why does the form link show up in 2 pages, but when I save the form as PDF it comes up as 3 pages?

    A few weeks ago, I asked the above question on why the form link shows up in 2 pages, but when the form is saved as PDF it comes up as 3 pages.
    The answer I received was that I can simply select the page break and hit "delete" button or click on the trash can icon at the top right corner.
    I tried to do this but, there is NO OPTION to select the page break and hit delete….
    I want to combine the page on my PDF because the header takes up one entire page.
    How can I do this? Can someone please help or walk me through this live?

    Wenlam,
    There is NO OPTION to select the page break and hit delete….
    Please see.
    I want to combine these page because the header takes up one entire page. 
    How can I do this?
    Trent
    Thank you,
    Trent
    Trent R. Smock
    602.359.2685
    You want to improve? Interrupt your "old patterns."
    Do something different.

  • Unable to display Info path form using IE , The form cannot be displayed in the browser because the use of DOM storage has been disabled in the current browser settings. In order to load the form, DOM storage must be allowed.

    I have edited the default edit form for my Issue Tracking Tool using Info Path, But currently when I try accessing the form using IE 10 64x , I got the following error-
    “The form cannot be displayed in the browser because the use of DOM storage has been disabled in the current browser settings. In order to load the form, DOM storage must be allowed.”
    But using Firefox I was able to access the edit form , so can anyone advice on this please?
    Thanks

    . Tools > Internet Options > Privacy Tab > Advanced
    Check the over-ride box to Enable/Accept cookies. Click on Always allow session
    cookies.
    2. Clear Your Cache and Cookie Files
    If you are using an Internet Explorer browser, please follow these instructions to clear
    your cache and cookie files: Open your Internet Explorer browser.
    Tools > Internet Options > General > Browsing History
    Click Delete Browsing History.
    Delete Temporary Internet Files, Cookies and History Also under Browsing History,
    click Settings and make sure that your browser automatically checks for newer versions
    of stored pages. Click OK and restart your browser
     3. Pop-up Blockers
    Turn Off the firewall in IE.
    you can disable\enable it from below:
    http://webdevwonders.com/clear-dom-storage/
    Clear DOM Storage in Firefox:
    Select “Tools” -> “Clear Recent History”, open “Details”, check “Cookies” and select “Everything” as time range.
    ATTENTION: No other time range will clear the DOM Storage. Have a look at
    Mozillas documentation for further info.
    Disable DOM Storage in Firefox:
    Type “about:config” in your address bar and hit enter to view your internal browser settings. Scroll down to „dom.storage.enabled“, right click on it and hit „Toggle“ to disable the DOM Storage.
    Clear DOM Storage in Internet Explorer:
    Select “Tools” -> “Internet Options” -> “General” -> check “Delete browsing history on exit”, click on “Delete”, check “Cookies”, click on “Delete” once more and restart your browser afterwards.
    Disable DOM Storage in Internet Explorer:
    Select “Extras” -> “Internet Options” -> “Advanced” Tab -> Go to “Security” -> uncheck “Enable DOM-Storage”
    Clear DOM Storage in Chrome:
    Select “Tools” -> “Clear browsing data…”, check “Delete cookies and other site data”, select “Everything” from “Clear data from this period” and click on “Clear browsing data”.
    Disable DOM Storage in Chrome:
    Open “Options” and select “Under the Hood” Tab. Click on “Content settings…”, select “Cookies” and set “Block sites from setting any data”.
    If this helped you resolve your issue, please mark it Answered
    ok i did all these steps but still i am getting the same error,, i can not understand how SharePoint works better on firefox and chrome comparing to IE !!! so what i should do now , as all the edit forms that are customized using Info path can not be viewed
    on IE 10 64x !!!!

  • Cannot open aperture v3 after upgrading to  OS 10.6.8.  Bought the upgrade online so cannot reload the software.  Can you help?

    Cannot open aperture v3 after upgrading to  OS 10.6.8.  Bought the upgrade online so cannot reload the software.  Can you help?

    How did you buy it online? Did you buy a registration number from the Apple Store?
    Then you can download the Trial version from this link:
        Aperture 3.1 Trial 
    and run Software Update immediately after installing.
    Go to the Applications folder and delete Aperture.
    Download the Aperture 3.1 Trial.
    Open the Aperture Trial disc image.
    Double-click the "Aperture Trial.mpkg" file.
    Follow the onscreen instructions to install Aperture.
    After the installation completes, choose Software Update from the Apple () menu.
    Cannot open aperture v3 after upgrading to  OS 10.6.8. 
    But what exactly is the error you get, when you try to launch Aperture? Maybe you need to do more than updating.
    Regards
    Léonie

  • My ipod will extract the files but will not reload the current software on to the ipod

    My ipod will extract the files, it will not reload the current software so I can download my itunes back on it.

    Did you check your security software settings? iTunes for Windows: Troubleshooting security software issues

  • Has the firmware upgrade on the time capsule been fixed to allow iphones on the wireless network?  I reloaded the previous firmware edition and it fixed the problem.  thx

    I checked beofre on the support communities when I was having trouble with the iphone 4 not being able to connect to the time capsule wireless after upgradeing the firmware.  When I reloaded the previous firmware version, the iphone wireless problem was gone.  Now the time capsule is asking to upgrade to that same newer version of firmware.
    I don't want to do it until the iphone 4 wireless connection problems have been addressed.  thanks

    ......will other users on the primary network (not the private wifi one) be able to access my files on my TCapsule?
    No, if you have not provided them with the Time Capsule device password. 
    Users will be able to "see" the Time Capsule icon under the SHARED heading in the Finder on their Macs, but they will not be able to access the drive or the files.
    I had also been thinking about wirelessly extending the wifi network (a linksys N router) but I guess that will allow everyone to access my Time Capsule?
    Same answer as above.

  • I dropped my ipad and the screen blacked out and could not be turned on even after pressing the sleep and home button

    I dropped my ipad and the screen blacked out and could not be turned on even after pressing the sleep and home button.
    I tried connecting the device to my computer and itunes said that it could not identify my device.

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • TS1470 Since very recently whenever I connect to Whatsapp and a few other Apps I get the following message  " CONNECT TO I TUNES TO USE PUSH NOTIFICATIONS"   After connecting to I Tunes I am unable to find any solution there

    Since recently whenever whenever I check any application especially WhatsApp, before it opens I get the following notification:
    : CONNECT TO I TUNES TO USE PUSH NOTIFICATIONS: After connecting to I Tunes I find no solution there?

    Dropbox is virtually disabled on my phone now because of these messages, and most other apps are now difficult to use. I have rebooted the phone several times, reset network settings and restored factory settings (and had to make all my adjustments again) but nothing worked. My phone is now almost totally useless.

  • HT201210 Hi, the App Store icon has been removed from my iPad even after synching and updating. Any suggestions on how to get it back to be able to update / purchase apps?

    Hi, the App Store icon has been removed from my iPad even after synching and updating. Any suggestions on how to get it back to be able to update / purchase apps?

    If you do not have, or remember, the passcode for Restrictions, the only option available to you is to reset the device to factory settings via itunes.

  • I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new A

    I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new APp.  It can be opened, but I want the APP to be on her iPhone screen as well as on mine.  Help, please.

    Is the app downloaded on her phone also?

  • After The updating of IOS I can't find my hotspot even after the latest update IOS 7.0.4 ,I need help please!

    After The updating for IOS I can't find my hotspot even after the latest update IOS 7.0.4 ! I can't use my IPad as a modem any more again!
    please I need some one to tell me how can I return my hotspot option?

    Hi there Buhamdaaan,
    You may find the information in the articles below helpful.
    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/ht4517
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/ts2756
    -Griff W. 

Maybe you are looking for

  • How to recover files from a deleted partition?

    Unfortunately, my OSX was not booting and I deleted my partition. Through the Internet Recovery mode I reinstalled the original OSX Mountain Lion it came with. I then upgraded to Maverick. I know that deleting a partition practically means all files

  • ITunes Library.itl file, and temp files after Time Machine retrieval

    Hi - I messed up a playlist and got it back fine using Time Machine, but I'm left with temp files as well as iTunes Library.itl and iTunes Library.xml files on my desktop (that's where I placed the needed file for playlist re-import).  Can't delete t

  • Bluetooth connection no longer working in VW Touareg

    I updated the software on my iPhone 6 plus to 8.1.3 and now am no longer able to connect my phone to the car through bluetooth. after several failed attempts (the message I received was "Unable to Connect") I reset to factory settings and when I atte

  • Delete histroy of a table

    Hi Experts, Is there any way so that i can see which user has deleted the data of my table. Actually sometime ago i had few data in emp table but now i can't see any of them. Could you please tell me how can i see the user who has deleted the data. R

  • HT201401 can't hear my sounds, phone ring, txt sounds etc, why??? help.

    can't hear my sounds, phone ring, txt sounds etc, why??? help. Message was edited by: Rob Tyler