The module works well for the fields with unlimited cardinality. However, when tried to replace the checkbox with a button in the module code, it didn't work just by changing a form control type. What else would need to be done to make a button working with the module?

Comments

FranciscoLuz’s picture

try out the dev version. I think that feature has been introduced already.

almc’s picture

Thank you, I've tried the dev version and it includes a button by default, which works very well as I started the testing. A checkbox is also a good solution as an option, however the button is often even more handy for inteface uniformity, imho. The feature itself is so useful and natural that Drupal core could certainly benefit from having it.
The core mechanics of unlimited cardinality seems quite tricky (e.g. I also tried to follow this reading), and there are few other modules that claim to provide this very useful feature of the Remove button but they all fail to deliver, except this module. Thank you for this efficient solution!

almc’s picture

Status: Active » Closed (fixed)
almc’s picture

Status: Closed (fixed) » Active

Not sure if it makes sense to keep it in this thread: that would also be useful if an identifying class (e.g. hardcoded as for Add button, or configurable) could be added to the Remove button, so it could be a hook for styling the button.

FranciscoLuz’s picture

Title: Replacing checkbox with button » Add unique css class to Remove Button
Version: 7.x-1.0-rc1 » 7.x-1.x-dev
pcambra’s picture

Agreed, anyone willing to provide a patch?