Ricardo Silva
|
Posted: 01/19/2004, 5:28 PM |
|
Hi!
I have a problem with multi-step registration forms. I am using the Example
Pack Solution but, after developing it, I concluded that it doesn't work
well... I don't know why!...
I created the forms as the description in the Example Pack Solution
(creating the event on the first registration form), but I cannot make them
to work! When I go to the 2nd registration form and I try to go to the
previous form (<< Prev) it demands that I have the required fields filled...
Besides, it always appears a "* required fields" expression on the top of
the page and I don't understand how it gets there!...
Please check it at: http://www.promulgatio.com/Eve_Register1.asp and,
PELASE, give me a hand!
Best regards,
Ricardo
|
|
|
Edd
Posts: 547
|
Posted: 01/19/2004, 4:00 AM |
|
I think that the Prev button has the "perform validation" attribute set on.
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
|
|
Ricardo Silva
|
Posted: 01/19/2004, 7:33 AM |
|
Do you meand the Enable Validation property? It is set to "no"...
I really don't understand what's going on with that forms...
Thanks for your suggestion. If you have any other idea, please let me know!
"Edd" <Edd@forum.codecharge> wrote in message
news:6400bc6c6b8add@news.codecharge.com...
> I think that the Prev button has the "perform validation" attribute set
on.
> _________________
> a simple idea....
> www.syntech.com.au
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
Edd
Posts: 547
|
Posted: 01/19/2004, 2:11 PM |
|
Ricardo,
In the CCS examples none of the fields are marked as "required" whereas you have them marked as required and it is still performing validation (why I don't know).
I would suggest the following change the Prev button to a non submit button and add javascript to point you to the prior page, ie
onclick="window.location='regform1.asp'"
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
|
|
Ricardo Silva
|
Posted: 01/19/2004, 6:55 PM |
|
Hi, Edd!
It did work fine. However, when I got back to the previous page, it didn't
pass the URL parameter that would retrieve the previous fields to the
form... So, the user when back to a new and blank form. Is there any way to
insert the URL in the javascript: http://localhost/promulgatio1/Eve_Register2.asp?ID=10
The ?ID=10... It was cutted out in the page that was displayed.
I send you the Cancel_Button html code in order to check what's wrong:
<input name="{Button_Name}1" type="button" value="<< Prev"
onclick="window.location='Eve_Register1.asp'">
Thank you for your support!
Best regards,
Ricardo
|
|
|
DonB
|
Posted: 01/19/2004, 7:51 PM |
|
Try changing it to "window.location.href
=window.location.href.replace('Register1', 'Register2');"
As you wrote it, the query parameters are not inserted into the
window.location property.
With the usual caveat that I don't do a lot of javascript and this might be
off a bit (syntactically): Basically, I suggest you simply modify the href
of your browser window - because this will contain the entire string
including the query parameters. They should repopulate Eve_Register1.asp
fields when that page redisplays.
--
DonB
http://www.gotodon.com/ccbth
"Ricardo Silva" <cp187a@hotmail.com> wrote in message
news:bui5bs$o40$1@news.codecharge.com...
> Hi, Edd!
>
> It did work fine. However, when I got back to the previous page, it didn't
> pass the URL parameter that would retrieve the previous fields to the
> form... So, the user when back to a new and blank form. Is there any way
to
> insert the URL in the javascript:
> http://localhost/promulgatio1/Eve_Register2.asp?ID=10
> The ?ID=10... It was cutted out in the page that was displayed.
>
> I send you the Cancel_Button html code in order to check what's wrong:
>
> <input name="{Button_Name}1" type="button" value="<< Prev"
> onclick="window.location='Eve_Register1.asp'">
>
> Thank you for your support!
>
> Best regards,
> Ricardo
>
>
|
|
|
Ricardo Silva
|
Posted: 01/20/2004, 12:08 AM |
|
Hi!
Just for leave my feedback, since this might be usefull for someone else:
- Your suggestion WORKED fine;
- However, I need to make one change (change the order of the ASP
pages in the onclick event); so, it would be (inside the cancel-button
html and after turning it to normal (not submit):
onclick="window.location.href=window.
location.href.replace('Register2.asp','Register1.asp')"
Thanks for your support!
Best regards,
Ricardo
|
|
|
|