I have a content type called "organizations." Now I currently have it functional in that someone could either type in the name of an existing organization and there is a drop down box of all of those that exist to select from, and there is a field to enter the organization name, should it be a new organizaton.

The problem is, we need to collect these forms on occassion to ensure the information is up to date, so we mandate that everyone fill one out periodically. Recently, a lot of people have been submitting these forms without an organization name. I know that I can easily make either of the aforementioned fields mandatory, but at the same time, if one is mandatory, then whats the purpose in having the other?

I want to know if its doable to have either or be filled in, but not just one. This is made using CCK. Thanks in advance for any help.

Comments

zbricoleur’s picture

I haven't tested it for the exact purpose you describe, but I'm pretty sure the explainfield widget for CCK will work for you. It lets you set up a dropdown so that if the user picks "other" (or some other choice you define), a text field appears for them to fill out. If you make the question a required question, I believe it enforces that the text field be filled out if "other" was selected in the dropdown. http://drupal.org/project/explainfield