/    Sign up×
Community /Pin to ProfileBookmark

button help

Hello,

I’ve created a multi-page .asp form using mostly HTML and some javascript for validation. Basically I’ve noticed that when a user types information then uses the provided back button <input type=’button’ value=’ << Back ‘ onClick=’history.go(-1);return true;’> but then decides to continue forward again the previous information on the initial page is lost. The continue button <input type=’submit’ value=’Continue >>’ name=’B1′> carries forward values in hidden fields to the next page. Is it possible to create something so that on reload of the page the continue button would change to something like:
<input type=’button’ value=’ Continue >> ‘ onClick=’history.go(1);return true;’>

Thanks in advance.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMar 04.2009 — Put the hidden fields in the "previous" page, so they are "held" there until the visitor goes forward again.
Copy linkTweet thisAlerts:
@DM84authorMar 04.2009 — Thanks for the reply,

I've tried that and there are a couple of issues with it. When the user goes forward again the values while still embedded in the hidden fields are not shown on the page - the appearance is as if the page is imcomplete. If the user then recompletes the form it not only creates dissatisfaction but also two values for the questions on the same page are carried forward.
Copy linkTweet thisAlerts:
@DM84authorMar 06.2009 — say i do use the hidden field method to save data from previous pages, is there a script to re-insert the hidden values into the visible radio buttons?
×

Success!

Help @DM84 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 5.16,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...