Removing the need for 'Add Existing'

18 views
Skip to first unread message

ownedthx

unread,
Nov 8, 2012, 12:26:46 AM11/8/12
to actives...@googlegroups.com
I want to provide the user with a dropdown for a belongs_to field, and have the user's action of just changing the selected value in the dropdown to change the value of the field; I don't want them to have to pick a dropdown value, then click Add Existing.    In fact I just want the dropdown to be the field; but today, in a belongs_to situation, you have a field with text, and a dropdown below it and the Add Existing link--and clicknig Add Existing puts the value of the dropdown into the text field.  It feels way too indirect.

Is there a way to merge those three ideas into one field--a single dropdown? The dropdown then shows the value and also allows you to change it; and if you change it, then you changed the value (provided you click 'Update' at the bottom, of course)


I'm aware of column_show_add_existing -- that's not what I'm looking for. If you set that to false, then the dropdown next to 'Add Existing' is removed altogether, and the user is just left with a free-formed text field.

There is still the challenge of adding new values to that dropdown... but let me wave that away for a second... is what I'm asking clear?

Thanks for any help!

Sergio Cambra

unread,
Nov 8, 2012, 4:01:53 AM11/8/12
to actives...@googlegroups.com
form_ui = :select

On Miércoles, 7 de noviembre de 2012 21:26:46 ownedthx escribió:
> I want to provide the user with a dropdown for a *belongs_to *field, and
> have the user's action of just changing the selected value in the dropdown
> to change the value of the field; I don't want them to have to pick a
> dropdown value, then click Add Existing. In fact I just want the
> dropdown to *be* the field; but today, in a *belongs_to* situation, you

ownedthx

unread,
Nov 8, 2012, 6:18:40 PM11/8/12
to actives...@googlegroups.com
Thank you!  I googled and googled this--missed the obvious.  Thank you so much...
Reply all
Reply to author
Forward
0 new messages