2

I have CCK fields that can hold multiple values, I would like some of them to default to showing say 5 values initially.

I'm not looking for any validation that all 5 values are used however.

Thanks!

2
  • Do you want the fields to hold a max of 5 values or unlimited but only showing 5 input fields initially?
    – Laxman13
    Jul 18 '11 at 19:50
  • unlimited but 5 initially :)
    – DanH
    Jul 19 '11 at 3:09
1

Unfortunately there is no way to do this without altering the module code of CCK.

There have been a few patches created that will allow you to set the number of fields initially shown and let you choose how many more to add when click the "Add another" button. However, this feature is not available in the core of Drupal 7 which may be a problem if you choose to upgrade.

Patch created for CCK 2: http://drupal.org/node/530828#comment-3397196

Patch created for CCK 3: http://drupal.org/node/841914#comment-3209072

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.