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.
It would be nice if I could control the number of default option rows show up by default. Currently it's hard-coded to three in the JavaScript and I have a need that two fit much better in the design/layout/form.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2012198-options-element-only-two-blank-values-do-not-test.patch | 370 bytes | Dave Reid |
Comments
Comment #1
Dave ReidHere's the temporary patch I'm using for now until I can figure out something better.
Comment #2
quicksketchThanks Dave, this is a good idea, but as you allude to, it would be preferable to have this passed to the options element via FAPI. We could use a data-attribute on the element, which is then read by the JS. I'd suggest something like
#empty_option_count
as the new property name.Comment #3
quicksketch