I have a need to require at least one of three fields instead of just two.

Since allowing the validator to require more than two fields also allows it to require just two fields, I modified the "Require at least one of two fields" validator to allow more than just two fields and attached the respective patch to this issue.

Hope it is useful.

CommentFileSizeAuthor
oneofseveral.patch1.9 KBborfast

Comments

borfast’s picture

svendecabooter, could you please have a look at this?
I believe it is useful but I have posted it a week ago and nobody said anything about it, yet.

svendecabooter’s picture

Sorry for not replying. It is on my todo-list, so I will check the path one of the following days.
I might have to change it a bit to provide an upgrade path for people already using the 'oneoftwo' component.

svendecabooter’s picture

Component: Code » Validation rules
Assigned: Unassigned » svendecabooter
svendecabooter’s picture

Status: Needs review » Fixed

This validation rule has now been added to HEAD.
Thanks for contributing borfast!

borfast’s picture

Great! Thanks for the great module, svendecabooter. :)

Status: Fixed » Closed (fixed)

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