Closed (fixed)
Project:
Options Element
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2011 at 13:30 UTC
Updated:
14 Jan 2012 at 03:42 UTC
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 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.