0

I am using the Profile2 module. Two fields are there in the Registration Form i.e.

I am : [Baby Male, Baby Female, Daddy, Mummy]

&

Looking For : [Baby Male, Baby Female, Daddy, Mummy].

if user click on I am : [Baby Male] then in Looking For: [Baby Female] is only show.

If select I am : [Baby Female] then in Looking For: [Baby Male].

So If I am : [Daddy] then in Looking For: [Mummy] & If I am : [Mummy] then in Looking For: [Daddy].

How can I do this?. Is there any module in Drupal 7?

4
  • 1
    Check once drupal.org/project/conditional_fields
    – DRUPWAY
    Sep 17, 2014 at 7:39
  • I think yes, As suggested by @Smalution, Conditional Fields module is what you're looking for.Smalution you can add this as an answer :) Sep 17, 2014 at 7:48
  • Thanks... through this module we can apply condition between fields but i have a query that through this module can i apply condition between options or between these four options...???
    – Nishant
    Sep 17, 2014 at 8:02
  • @samzha you accepted the answer. Then what's your problem? didn't you solve that? How can I help you? Sep 17, 2014 at 12:45

1 Answer 1

1

Yes you can do this also option wise using field conditional state module.

Go through this field_conditional_state for details.

Trigger a state when applied to a control field:

    empty - Triggers when the control field is empty
    filled - Triggers when the control field is not empty
    checked - Triggers when the control field is checked
    unchecked - Triggers when the control field is not checked
    value - Triggers when the control field's value is equal to a given string
    !value - Triggers when the control field's value is NOT equal to a given string
6
  • Please help me to do this through field_conditional_state...@Smalution
    – Nishant
    Sep 17, 2014 at 11:36
  • @samzha Can you write down the problem you are facing.
    – DRUPWAY
    Sep 17, 2014 at 11:40
  • Actually i try to solve this through field_condition_state... but can't understand how can i implement... Please help me, i am using frst time this module...
    – Nishant
    Sep 17, 2014 at 11:47
  • First may u pls tell me "field_condition_state" is work with "conditional_field" or work independently...
    – Nishant
    Sep 17, 2014 at 11:50
  • it works independently.
    – DRUPWAY
    Sep 17, 2014 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.