Would it be possible to adapt Options Element as a generalized row add/delete widget for any text field that allows multiple values?

Comments

quicksketch’s picture

Yes, 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.

DrewMathers’s picture

The 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

quicksketch’s picture

Category: feature » support
Status: Active » Closed (fixed)

As the original request was answered (long ago), I'm closing this issue.