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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Here's the temporary patch I'm using for now until I can figure out something better.

quicksketch’s picture

Thanks 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.

quicksketch’s picture

Title: Add a way to alter the number of custom options » Add a way to alter the default number of empty options
Issue summary: View changes