Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
FranciscoLuz CreditAttribution: FranciscoLuz commentedtry out the dev version. I think that feature has been introduced already.
Comment #2
almc CreditAttribution: almc commentedThank 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!
Comment #3
almc CreditAttribution: almc commentedComment #4
almc CreditAttribution: almc commentedNot 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.
Comment #5
FranciscoLuz CreditAttribution: FranciscoLuz commentedComment #6
pcambraAgreed, anyone willing to provide a patch?