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.
This is another followup to #3040236: Turn default entity ID field into an autocomplete, which turned the "Default entity ID" textfield into an autocomplete field.
However, if there are only few entities or if Javascript is turned off, a dropdown would be nicer.
This ain't more than a nice-to-have cream topping though, which we would probably only implement if anyone asks for it.
Comment | File | Size | Author |
---|---|---|---|
#3 | fillpdf_default_entity_id_select_max_3047921-3.patch | 13.29 KB | Pancho |
|
Comments
Comment #2
PanchoHere's a patch that displays a select unless there are more than 25 referenceable entities in which case it turns into an autocomplete.
Comment #3
PanchoSimplify redundant code.
Comment #5
PanchoLeft the non-JS case out for now.