2

I am using add more for a field which provide only maximum limit But I want to add by default two fields with "add more" button up to a maximum number of 10 fields.

How can I achieve this ?

  • Are you looking for the drupal.org/project/field_collection module? pls clarify your requirement – Anoop Joseph Nov 27 '12 at 12:28
  • Thanks!! I have a form with some fields (say name, url, token). I want to provide "add more" button for token field with two token fields by default (drupal gives one by default) and maximum 10 token fields (drupal gives it) when user is filling form. I think now you have idea what i want. – navneet Nov 27 '12 at 12:37
2

Sounds like you're after the Multivalue Settings module.

So you can create fields where, for instance, users have to input at least 5 values but can input up to 10 values. Or you can create fields that allow 100 values, but only display 20 fields to start with.

HOWEVER (and this is a big however - if I could change the font size I would)

This module should probably only be used as a starting point, and should not be used in production. I'm sure you can get the code you need from it.

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. I'm working on fixing things, but don't have much time. Help is welcome.

  • This module is still buggy as written on the description page. Could you advice another solution? – milkovsky May 26 '14 at 13:59
  • I tried the module. It's really buggy and should not be used on production. Looking forward for other solitions – milkovsky May 26 '14 at 15:41

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.