Hi all,

Been having a heck of a time with this.

I'm trying to define my forms within config.ini files and have made it part way. The part that I can't figure out is how to set the error message template or even the error message within those files.

To produce the following element:

<input type='hidden' name='verb' value='add' />

I put this in myForm.ini

myForm.elements.verb.type = "text"
myForm.elements.verb.options.validators.alpha.validator = "alpha"
myForm.elements.verb.options.required = true

Given a value of '99' rule 2 produces:
  "'99' has not only alphabetic characters"

Given nothing rule 3 produces:

  "Value is empty, but a non-empty value is required"

While intelligible those are pretty stilted. (a regex failure produces output only a programmer could love.)

If somebody could show me how to do it for one form element I could probably (famous last words ;) figure out the rest of them.

tia,
Mike Wright

Reply via email to