Hi. I have a new site to do, and (so far) there are 3 things I haven't done before in Drupal. I'll make each a different message so the thread doesn't get confused. The first one is what is/used-to-be? called a combo box. That is, a select box that also allows one to type in an entry if none of the options will do. In terms of the operation of a normal combo, the issue is that while I can put a text box above a select, and when submitted, take the selected option, if one, or the text box contents, if any, normally a combo will take an option selection and deposit that text in the text-box portion, in case you want to edit it.
Jeff Greenberg schrieb:
Hi. I have a new site to do, and (so far) there are 3 things I haven't done before in Drupal. I'll make each a different message so the thread doesn't get confused.
The first one is what is/used-to-be? called a combo box. That is, a select box that also allows one to type in an entry if none of the options will do. In terms of the operation of a normal combo, the issue is that while I can put a text box above a select, and when submitted, take the selected option, if one, or the text box contents, if any, normally a combo will take an option selection and deposit that text in the text-box portion, in case you want to edit it.
Hello. You may want to try the module "Node reference create" [1]. It will seem to be overkill but does exactly fit your requirements. The dropdown would be an autocomlete textfield with a list of node titles (of a specific content type you should create for this purpose). If you enter the title of a node that doesn't exists it will be created for you. hth, Stefan [1] http://drupal.org/project/noderefcreate
Stefan Borchert wrote:
You may want to try the module "Node reference create" [1]. It will seem to be overkill but does exactly fit your requirements. Thanks Stefan. In one case, the options aren't nodes, so I'll probably end up using taxonomy and autocomplete, but in another case it is nodes, so this will work well!
The first one is what is/used-to-be? called a combo box. That is, a select box that also allows one to type in an entry if none of the options will do. In terms of the operation of a normal combo, the issue is that while I can put a text box above a select, and when submitted, take the selected option, if one, or the text box contents, if any, normally a combo will take an option selection and deposit that text in the text-box portion, in case you want to edit it. Could be breaking a peanut with a sledgehammer but the Ext module would give you access to the Ext.form.ComboBox widget (http://www.extjs.com/deploy/dev/docs/?class=Ext.form.ComboBox) which with the right js and a transform config option for the Ext component would turn an ordinary select into a nice combo box for those with javascript but would degrade to a select for those without. Personally Ext is my area but jquery ui might have a similar widget.
participants (3)
-
Jeff Greenberg -
Lee Rowlands -
Stefan Borchert