List field with dropdown instead of reference

danpatino
Tera Expert

This might end up having a really simple solution I am just not aware of.

I built an application that had a List field type on one form with configured choices.   The default behavior for this field type is a dropdown to make selections.

Before.jpg

However, I then got the requirement to have these options configurable on a separate table.   So I created a table and had this field reference it.   It works fine except the selection is now in 'reference' format.

After.jpg

There are less than 10 entries in this 'lookup' table.   In order to convert it back to a dropdown style entry, I've tried the following:

  1. In the field dictionary entry >> 'Choice List Specification' section >> 'Choice' field I've chosen 'None', 'Dropdown without None', and 'Dropdown with None'
  2. Added ref_auto_completer=AJAXReferenceChoice as a dictionary attribute
  3. Added max_ref_dropdown=20 as a dictionary attribute

Any more ideas on what to try or whether this is possible?   My next approach is to get the control using an onload client script and manipulate the DOM but I really hate going that route and would like to avoid it if possible.

Thanks in advance!

5 REPLIES 5

Yes, they can be; but in most cases you would use a Choice field and select the referenced table and fields for the choices. Good luck. There are always smarter people (than me) out there who can script their way through things.