/    Sign up×
Community /Pin to ProfileBookmark

back and clear form button – any ideas?

Hi,

I would like the have a button which does the following:

Return user to data entry form (where they just entered data) but I would the text boxes to be clear (instead of containing the data the user has already entered)

thanks alot for your help.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@KoyaanisqatsiMar 25.2003 — [b]Dave[/b]--

Hi. First time poster, longtime lurker ?.

I take it that fix above is javascript and won't work for an HTML form, yes?

If so, could you provide the full code and/or link to a simple form that when the "submit" button is hit, it both sends the info [i]and[/i] resets the form page?

I have an html version that sends the form no problem, but doesn't reset the page automatically after, so there's no indication from the user's side that anything has been done.

As a result, I keep getting repeated emails, evidently from user's hitting the "submit" button over and over again.

I used html because it's a very simple form and I'm not too familiar with how to integrate javascript into html, so I would also need the <HEAD> code to instruct the computer that it includes a javascript command.

This is the page I'm working on: [url=http://www.oregonbreakers.20m.com/main.html]OBI "Get A Quote"[/url]

As you'll see from viewing the source, my code is exceedingly simple (and incomplete; I'm still building the site). Any suggestions?

Thanks!
Copy linkTweet thisAlerts:
@KoyaanisqatsiMar 25.2003 — Sounds good to me. Can you provide the javascript code for a simple "mailto" form that submits the info and then resets the page (including the javascript instructional information to put in the <HEAD> attributes) or was that it before?

Sorry, I just am not at all familiar with how javascript integrates with HTML

thanks!
×

Success!

Help @zama spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...