|
|
|
|
|
by 1337shadow
2163 days ago
|
|
I just tried a datalist with 4 elements: https://jsfiddle.net/zguvdet0/ And it doesn't cut it for a foreign key: it can't even have a separate option value and label like the basic select ... Well, it sort of can, but then the user sees the value of the option (the related row id in the context of a CRUD) and not the label ... Does that mean that when I choose "something" and go back to my form again i will see "123" because "123" is the id of "something" on the remote row ? I must be doing it wrong ... otherwise, it's far from acceptable UX. https://jsfiddle.net/zguvdet0/ |
|
Yes, this could be a problem if the label is not unique. But if that could happen you already had problems, because how was the user supposed to tell which “ACME Inc.” they were supposed to click on?