Filter Drupal view by value of field?

I am working with Drupal 6.x with Views and CCK to make some simple forms.  I want to have a field in one CCK type / content type reference a node from another CCK type.  However, I only want the list of possible references to be included if the value in another field is equal to X.  Specifically I have CCK type "A".  "B" will have a field that references the title / nid of "A".  The user will select from a menu list.  However, I only want the user to be able to select / reference "A" in "B" if another field in "A" has a certain status.  In my specific case there is an approval field in "A".  I only want a user in "B" to be able to reference an "A" entry if the "A" field for approval status is set to "Approved".  Is there a way to do this with native CCK or Views functionality, or alternatively is there a module for 6.x I can use.  Or am I looking at learning how to hook forms?
XercAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobertPopeCommented:
You can accomplish this with the "Node Reference" field - however you will need to select advanced options and use a view to populate that field instead of a content type.

Create your view that has only your approved form titles (set up a view that filters out for the content type you want AND which have the APPROVED status.

Create your content type that will reference the first one and create a node reference field...instead of selecting the content type go a little further down and SELECT THE VIEW instead.  This should give you the drop down you are looking for

Robert
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.