Domos
11-26-2003, 03:58 AM
Hey all,
I hope u experts can give me a hand on this.
i know what i want has is possible with dhtml / javascript but since i'm not that experienced in them i came here and ask for advice.
I'll try to explain the purpose of the form i need.
The form has x number of fields, each with their own mask and each with validation.
The data given in by the user should be immediatly checked when he jumps to the next field (this jump can be with Tab or automatic when the field is determined by a number of characters that can be filled in)
If the validation returns false an error message should pop-up (preferably with an error-sound)
If the validation is ok the user can fill in the next form field.
At the bottom of the form there are three buttons: Previous, Next and Generate
When the user hits next the data off all fields should be stored in one hidden field and the form i shown again with empty fields.
The User can give in multiple form-data so every time he clicks next the data has to be added to that specific hidden field.
let's say the user gave in these values the first time: field1=aa field2=bb field3=54
then when hitting the next button the value aabb54 is stored in the hidden field
Now he fills in the form again (field1= zz field2 = gg field3=78) and clicks next again
Then the value of the hidden field should be updated with those values (that way the value of the hidden field would then be aabb54zzgg78)
When the user hits the previous button (once, or several times) the data of the previous form is shown in the form
So (continuing the example) if the user would hit the previous button once he would see the form filled in with zz, gg and 78. If he would hit it twice he would see the form with aa, bb and 54 filled in.
At this moment the user can change the filled in data and when hitting next again the edited data is stored in the hidden field (and the form is shown again >filled in or not...)
Now for the third button:
When the user clicks generate the value of the hidden field is shown.
Well i hope this makes sence and u can give me some help on this.
thx in advance
Domos
I hope u experts can give me a hand on this.
i know what i want has is possible with dhtml / javascript but since i'm not that experienced in them i came here and ask for advice.
I'll try to explain the purpose of the form i need.
The form has x number of fields, each with their own mask and each with validation.
The data given in by the user should be immediatly checked when he jumps to the next field (this jump can be with Tab or automatic when the field is determined by a number of characters that can be filled in)
If the validation returns false an error message should pop-up (preferably with an error-sound)
If the validation is ok the user can fill in the next form field.
At the bottom of the form there are three buttons: Previous, Next and Generate
When the user hits next the data off all fields should be stored in one hidden field and the form i shown again with empty fields.
The User can give in multiple form-data so every time he clicks next the data has to be added to that specific hidden field.
let's say the user gave in these values the first time: field1=aa field2=bb field3=54
then when hitting the next button the value aabb54 is stored in the hidden field
Now he fills in the form again (field1= zz field2 = gg field3=78) and clicks next again
Then the value of the hidden field should be updated with those values (that way the value of the hidden field would then be aabb54zzgg78)
When the user hits the previous button (once, or several times) the data of the previous form is shown in the form
So (continuing the example) if the user would hit the previous button once he would see the form filled in with zz, gg and 78. If he would hit it twice he would see the form with aa, bb and 54 filled in.
At this moment the user can change the filled in data and when hitting next again the edited data is stored in the hidden field (and the form is shown again >filled in or not...)
Now for the third button:
When the user clicks generate the value of the hidden field is shown.
Well i hope this makes sence and u can give me some help on this.
thx in advance
Domos