Checking A Value During Form Submittal

How can I verify against a value stored in the db during a form submittal?

Given the following tables:

In the multipage comment form, on the first page the user will select the product using an auto complete field. From here I am using the Wizard Behavior extension’s Plot Branching Navigation to direct users to different additional pages of the form pending the “status” of the product they have chosen.

In order to do so I need to obtain the associated "status" for a given product to base the switch logic on in routing to additional pages.

How can I get this at that point in time in the form?

Any ideas or guidance?

Hi enfield

In your Model you can override the beforeValidate function and check what ever you want either with CSqlDataProvider or with AR functions