Hi,

I'm making a wizard with multiple stages, all being submitted to the  
same action. The stage is in the URL like:

/somestageofwizard/
/anotherstageofwizard/

etc.

Each wizard stage has a form, and need to be validated. However, I  
only want each stages' validators to run on that stage. What is the  
best way of going about this?

I have tried using regex validators for "stagename": each test against  
a particular stage name, and "provide" a dependency to the validators  
specific to that stage. However, this always results in the  
"stagename" being marked as invalid, as it can only satisfy one of the  
regex validators.  I would like a way to "provide" a value that is  
equal to the submitted stagename: this would allow attributes like

depends="somestageofwizard"

in the validator definitions, to ensure they only run on their stage.

Is there someway to do this? Is there maybe a better way?

Michal.

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to