bret at pectopah
May 15, 2011, 12:50 PM
Post #2 of 5
I'm afraid throwing the error from the template is how it's done.
You can pre-populate the field by typing a value in it in the element
type manager. Maybe something like "REPLACE ME WITH REAL ALT TEXT!"
Hope this helps,
On Sun, 2011-05-15 at 18:14 +0100, Mike Raynham wrote:
> Is it possible to make a field required and and set a minimum length?
> I've created an Image element type, and added an Alt field (for alt
> text). I would like to ensure that the user is forced to enter a value
> in this field. Setting a value for Minimum Occurrence ensures that the
> field is displayed in the GUI, but that field can still be left blank.
> I can possibly throw an error from the template, but that seems a little
> messy. How do others solve this?
Pectopah Productions Inc.
bret [at] pectopah