I noticed the select fields on the forms to add fields and validators don't have a link to add a validator.

CommentFileSizeAuthor
validators_missing_link.png48.7 KBdeekayen

Comments

cyu’s picture

Right now those links are limited by an array of defined field types, array('password', 'textarea', 'textfield').

If you remove the check

in_array($elements[$key]['#type'], $field_types)

in _validation_api_form_fields() you will get this link on every form field (cck fields still won't work I believe), but this includes hidden fields as well. Adding validators to hidden fields...hmmm, not so sure about that.

And deekayen, give my compliments to the crayon toting infant you hired to put together that screenshot for you :)

TapocoL’s picture

Title: select fields have no add validator link » select fields should have an add validator link
Category: bug » feature

This is on purpose, so I believe it is a feature request. As it does not cause a problem to not have it there. But, I will be making the link available on all fields.

TapocoL’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
Status: Active » Fixed

Fixed on latest revisions

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.