[opencms-dev] Validation Rules

Tosi, Joel JTosi at cme.com
Wed Feb 8 18:40:48 CET 2006


We are running on 6.0.2.  In one of our xsd files, we put in a
validation rule to ensure that this field is populated (a required
field).  So the validation rule was:

 

<validationrules>

            <rule element="Title" regex="!^\s*$" type="warning"
message="Title field should not be left empty" />

</validationrules>

 

The problem is that this error shows up when we create a new piece of
structured content.  Why isn't the validation rule only called on save
or did we do something wrong?

 

Thanks,

Joel

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060208/08570d9e/attachment.htm>


More information about the opencms-dev mailing list