/    Sign up×
Community /Pin to ProfileBookmark

milti form page

hello, i am new to this form and i ahve been trying to figure out how to make a order form. i have it all in one list but to make it look nice i would like to break it down into hidden sections. i already know how to hide them but they stay where they are and i would like it to shift it all up to the next instead of having a big blank area on the page.

ex if they select they want to order a quilt pillow and mattress, the page would only show those fields and they would all be one after the other. hope you understand. thanks for the help. Pat

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@noahd1Nov 09.2003 — If you don't set the style on the section to "display:none" it will take up space on the page even if you hide it. Hope that helps.
Copy linkTweet thisAlerts:
@peetcool9authorNov 09.2003 — thanks, i can now hide it on click and it works great but now i get a bunch of errors. i did not write this code but i tried to update it but i think i did some wring calls as it gives me errors everywhere.



<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var ie4 = (document.all) ? true : false;

var ns4 = (document.layers) ? true : false;

var ns6 = (document.getElementById && !document.all) ? true : false;

function loadfunction() {

hidelayer('PersonalInfo')

showlayer('DownQuilt')

showlayer('DownQuillow')

showlayer('DownPillow')

showlayer('Covers')

showlayer('FeatherMattress')

}

function hidelayer(lay) {

if (ie4) {document.all[lay].style.visibility = "hidden";}

if (ns4) {document.layers[lay].visibility = "hide";}

if (ns6) {document.getElementById([lay]).style.display = "none";}

if (ie4) {document.all[lay].style.display = "none";}

if (ns4) {document.layers[lay].display = "none";}

if (ns6) {document.getElementById([lay]).style.display = "none";}

}

function showlayer(lay) {

if (ie4) {document.all[lay].style.visibility = "visible";}

if (ns4) {document.layers[lay].visibility = "show";}

if (ns6) {document.getElementById([lay]).style.display = "block";}

if (ie4) {document.all[lay].style.display = "inline";}

if (ns4) {document.layers[lay].display = "inline";}

if (ns6) {document.getElementById([lay]).style.display = "inline";}

}

// End -->

</script>





and i call loadfunction with



<body onload="javascript:loadfunction()">


it will not let me show the code when i press my button calling the sho function. what is wrong. thanks for the quick reply
×

Success!

Help @peetcool9 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.6,
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,
)...