My site has 4 main content types that have similar (but slightly different) fields in the content entry form. I also have sub-types (articles - columns and articles - newspaper for example).

Instead of creating 4 separate Content Types, I prefer to have users create one type of content and categorize it based on a "Content Type" taxonomy. What I want is for the form fields to appear/disappear to the content author based on the content type selected --- so "weblinks" content type would show the CCK link field but "article" content type would not. That way, authors see only the fields they need for that type.

Seems like this should be fairly simple (to create a dynamic form), but I can't find any module, etc., that helps me do this. I've been searching these forums and the web for 2 days now. Anyone have any good suggestions? Thanks!

Comments

WorldFallz’s picture

You could do this with js, but any user that has js disabled will be presented with all fields. You could code it into a module, but that would be quite complicated. This is the entire reason for having different content types.

Jboo’s picture

This is EXACTLY what I'm looking for! Did you have any luck getting it to work somehow? If anyone else could chime in with any suggestions for getting this effect that would be great.

Thanks.

My new EasySnoozing, Nursing and BusinessEgghead websites on D7!

WorldFallz’s picture

You might be able to do this with conditional_fields and content_taxonomy-- there's a patch in the conditional_fields issue queue you need for content_taxonomy integration though.

Jboo’s picture

Ok, great, thanks. I'll take a look and see if I can get it to work as I need.

My new EasySnoozing, Nursing and BusinessEgghead websites on D7!