I'm hoping somebody can help me.
I have added nine term reference fields, one for each of my vocabularies, to the Create New User page. What I want is to only allow one term to be selected from all nine term reference fields.
I realise that one way of doing this would be to combine the nine vocabularies into one and then choose to only allow the selection of one term. However, I would much prefer to keep my vocabularies separate.
I had a look at the Rules module but couldn't see an Action to fail the validation of a new user, even if I could test for empty fields etc.
I also had a look at the Conditional Fields module but again couldn't see a way to fail the validation.
Any help or pointers would be most gratefully received.
Many thanks,
Matt
How to limit selection to one across several term reference fields?
249 Views Asked by user2615617 At
1
There are 1 best solutions below
Related Questions in DRUPAL-7
- Drupal access control to custom user profile page
- How to list all child pages of current parent page in drupal 7?
- Drupal location module shows only a portion of Gmap on node page
- How to add a select collection type select list to field collection
- Drupal AngularJS ajax simple ng-repeat update
- PHPStorm Drush on Vagrant
- Drupal: Access A Field in hook_views_query_alter()
- Drupal domain access auto create content
- How to display sibling pages except current page in drupal 7?
- how to merge entity reference relationship field value
- Drupal print breaks when rendering a region
- Drupal 7 treating HTML div with data attribute as text
- All files and folders are not being listed in the imce file browser in Drupal 7
- drupal api returns json causes syntax error, malformed JSON in json_decode function of php
- Drupal module development, custom database tables, pages for managing those data
Related Questions in DRUPAL-TAXONOMY
- Drupal views reset exposed filters values on change
- Contextual Filters using Taxonomy Works in Preview but not on Page
- Drupal 8 entity query with multiple taxonomy terms
- Drupal 8: Taxonomy page limit exposed filter options based on parent term
- create sub vocabulary term for taxonomy
- Drupal 7 Views - Group By Content Type and Taxonomy Term
- Drupal 7: Get all content items attached to all terms in a vocabulary sorted by date
- Taxonomy and views
- how to display users when we search for a particular node in the exposed filter in views drupal 7
- Drupal 8 migrate taxonomy hierarchy
- Drupal Taxonomy
- Drupal Views - Multiple Vocabulary Arguments / Filter
- Drupal 7 - Insert taxonomy into node object
- Looking for a Drupal Module that will Redirect Pathauto urls when a node is deleted
- Drupal function to return content types associated with a term
Related Questions in DRUPAL-FIELDS
- drupal : content type CCK - add an existing field disappeared?
- Reading node field values in drupal7 programmatically
- Displaying custom fields in a forum
- Display Label given key for select list
- Content Taxonomy along with Conditional Fields
- Creating Custom Field Formatter is not working
- Drupal 7 Does "New Node Creation" initiate/prepare the Fields for different Content Types?
- Drupal 7 Is the a way to programmatically know the Fields in a Content Type?
- Drupal 8 - How to enable custom field under manage form display programmatically?
- Add field when adding new content in Drupal
- Drupal 8 - Admin - Content Types - Manage form display - Fields groups, labels, headers
- Creating a link field in a custom content type
- Drupal Views - Custom Theme for a field
- How to limit selection to one across several term reference fields?
- Drupal CC/Views - new fields not showing up in CCK
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have managed to achieve what I wanted after discovering the excellent Rules Forms Support module. I ran into a bit of difficulty because there is no condition to check whether a form element is empty, only to compare it to a value. To overcome this I included the term 'None' to each vocabulary, set it as the default value and chose the field to be required. I was then able to set the condition to compare against this (tid) and it worked!
Hopefully this may be of help to someone someday.
Happy Drupaling to you,
Matt