Field_or provides the ability to mark fields in a fieldgroup as exclusive.
What it does:
- Adds a configuration option to the fieldgroup configuration page to make sure that "Users must fill out one field. Multiples not allowed."
- Validates the node submission to make sure that constraints are enforced.
Say you have a node teaser where the user can specify either an image thumbnail or a video to display, but not both. Presently, there's no way to act on that. Until now.
How to Use
- Install the module, as well as cck and fieldgroups
- Add a fieldgroup to your content type
- Configure the fieldgroup and select "Users must fill out one field. Multiples not allowed." to enable this module for that fieldgroup.
- Add fields to the fieldgroup