Hi.
Please, can I have conditions in form registration?
For example:

Where are you from?
- USA
- Canada

If the user selects Canada, the next field is Canada States... if he selects USA, display USA states...

Is this possible?

Thanks.

Comments

vasheck’s picture

Looking for the same functionality.... I'd like to display Canadian provinces & territories drop-down if Canada is selected from a "country dropdown" on the registration form

Thanks!

mcfilms’s picture

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

vasheck’s picture

Thank you mcfilms. I used conditional fields module before on other websites but in this particular case I need to use the core profile module (can't use Content Profile module). The conditional fields module doesn't seem to support / integrate with the core Profile module. I guess I wasn't specific in terms of explaining my needs/case. I'll keep looking around and if I find a solution I'll post it here.

Thanks anyway!

vasheck’s picture

Just out of curiosity I tested the "content_profile" way of implementing the functionality and it does work....
I used a combination of the following three modules to accomplish the functionality described in the original question.

http://drupal.org/project/content_profile
http://drupal.org/project/conditional_fields
http://drupal.org/project/profile_taxonomy (probably not needed but I wanted to see if I could categorize users as well)

I hope this will help someone.

thorandzeus’s picture

I've installed the modules you described but couldn't make it work in my profile page... Any tips?
Thanks

jordojuice’s picture

Did you follow all the steps to set up the profile?
Activate modules
Set content type as Content Profile
Add fields (address or whatever) to content profile content type
Create your content profile on your account page

Content Profile can automatically create the profile nodes when a new user is created, but if your user was created before Content Profile was installed you may have to create your profile yourself at /user. Also, if you have Content Permissions module active then be sure to assign the proper permissions. If you allow users to fill out the content profile on the registration page then you must give edit permissions to anonymous users for those fields.
Hope this helps! Let me know if you've already done all this we'll try to figure something else out.

jordojuice’s picture

Based on the initial example using addresses and filtering from country -> state -> etc a good module to do this is http://drupal.org/project/addresses
This provides a field that does exactly this, from country down to street and includes phone numbers if you choose. You can set the order that each field appears or select which countries you want to allow in the addresses settings (admin/settings/address).