Yes, you can do a simple
[session required field1,field2,field3]
or a more complex
[session validate_field1 "/somepatt/ ? field1=whatever ,
field2=whatever : field3=whatever"]
and a similar
[session if "conditional {=field2} whatever ? field1=whatever ,
field2=whatever : field3=whatever"]
The first gives a warning if a warning if a required field is blank.
The second allows you test a field by some pattern and trigger actions
to fields (1 & 2) if it passes, or other fields (3) if it fails.
Usually there is a
[session warn]
line before any actions take place and you simple assign an error
message when a validation fails.
The third option taps into any conditional BoltWire can understand and
then behaves similarly based on whether the condition returns true or
false.
Let me know if this is not clear. I know it's quick and abbreviated.
Cheers,
Dan
P.S. I just posted this to the docs with a bit more detail. If anyone
cares to fill in and make it more readable, more power to you.
On Tue, Oct 6, 2009 at 11:00 AM, Hans <[email protected]> wrote:
>
> Has BW got an input validation system?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---