2

I have this form tag

{exp:channel:form
    channel="xxxxx"
    class="form-horizontal row-fluid"
    date_picker="no"
    error_handling="inline"
    include_assets="no"
    include_jquery="no"
    return="/foo/bar/"
    rules:title="required|max_length[5]"
}

I am trying to limit title to 5 characters. However, it does not seem to work since I was able to post titles with more than 5 characters without the form complaining.

4

The documentation (user guide, channel form) does seem to mention (custom) fields. (a quick look at the source of channel:form lib indicates the same).

You could validate length with the help of a little bit of javascript, and/or report a bug (feature request) at EllisLab that rules should also apply to default fields.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.