set validate some rules only on a final page?

1 view
Skip to first unread message

Mike Henke

unread,
Aug 13, 2009, 2:23:32 PM8/13/09
to ValidateThis
Can ValidateThis be set validate some rules only on a certain point?
Like the final page.

Scenario: Application process, multiple pages, customer doesn't want
to hinder user from proceeding, and filling out different pages, but
wants to validate certain items on the final page before submitting
the application. Basically, we have specific page validation and
final validation.

Gmail

unread,
Aug 14, 2009, 8:55:36 AM8/14/09
to valida...@googlegroups.com
That sounds like a job for contexts. When you assign a rule to one or
more contexts, the rule will only get enforced when you validate for
that specific context. So you could create a context for your final
page (e.g., "final") and add all your rules to that. Then when you use
VT, e.g., via validate() or getValidationScript(), you would pass in
the context of "final" only for the final page.

Make sense?

Sent from my iPhone

Mike Henke

unread,
Aug 14, 2009, 9:13:01 AM8/14/09
to ValidateThis
Makes sense. Thanks,

On Aug 14, 8:55 am, Gmail <bob.silverb...@gmail.com> wrote:
> That sounds like a job for contexts. When you assign a rule to one or  
> more contexts, the rule will only get enforced when you validate for  
> that specific context. So you could create a context for your final  
> page (e.g., "final") and add all your rules to that. Then when you use  
> VT, e.g., via validate() or getValidationScript(), you would pass in  
> the context of "final" only for the final page.
>
> Make sense?
>
> Sent from my iPhone
>
Reply all
Reply to author
Forward
0 new messages