1

Is it a way to make a Drupal 7 entity field behave as 'an add more button', but with finite number of values?

For example, initially there is only one form field for inputting the value showing, then I can keep adding up to 4 more form fields. I can set it to maximum 5 fields, but it will show 5 fields all at once. The client only wants to show 1 field initially.

1

This functionality is not available out of the box. But it's something people have been asking for (repeatedly) since at least D6 CCK 2:

User goron has developed a contrib module for Drupal 7 called Multivalue Settings.

But be aware - from the module description page:

Warning: this module is still very buggy. Actually, it only works in very few use cases. I suggest to only attempt using it with core fields (not fields from contrib modules). Even this may not work.

And it hasn't been updated in over a year.

Screenshot of Multivalue Settings functionality: enter image description here

|improve this answer|||||
  • It is very buggy and I cannot use it. – kenpeter May 8 '13 at 6:31
0

go to admin/structure/types/manage/[content type]/display/teaser select the fields you want to display and hide. Teaser will give you readmore by default.

or if this is not you are looking for you have to theme using jquery to hide and show the content

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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