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.
Would it be possible to adapt Options Element as a generalized row add/delete widget for any text field that allows multiple values?
Comments
Comment #1
quicksketchYes, this module is already a generalized element for such a purpose. However it currently provides a lot of overlapping code that also exists in modules like Webform and CCK, with the goal being to eventually become a part of core and remove the need for this redundancy.
So in short: yes it's possible to integrate Options Element directly into other modules easily, but no it's not possible to just automatically replace all textareas for options with options element.
Comment #2
DrewMathers CreditAttribution: DrewMathers commentedThe reason for proposing this is that the general Drupal approach to repeating text fields seems to be to provide a blank field at the bottom of the list and let the user drag it up to the correct position. This can be difficult with large lists especially if they have nested hierarchy. The Options Element UI is clearly a superior approach. Here is an example of the kind of problem that Options Element could solve: #818742: Insert new item in middle of menu
Comment #3
quicksketchAs the original request was answered (long ago), I'm closing this issue.