Drupal 7 – Combo field for content type

When we create content type, sometimes we may want to have a combo field which is one single field contains more than one value. This can be done by using the Field collection module.

1. Download and enable the Field collection module.

 

2. Edit any content type and add a Field collection field with Embedded widget. Set this field to multiple.

 

3. Go to admin/structure/field-collections and you will find the combo field you just created.

 

4. Add new fields to the new combo field.
 

5. After the combo field is ready, create a new content and you should get the node add form as follow.

 

Done =)

Reference: Drupal module – Field collection

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s