This topic is locked

How to disable autoselect on add/edit dropdown list

8/1/2017 2:11:32 AM
PHPRunner General questions
Z
Zerobaka author

Hey there fellow scripter.

I got a problem, request some revelation please.
I notice some behaviour of add/edit pages, when you set a column edit with dropdown list.

When only one of items to select, it will always selected automatically.
I's nice and all, considering it saves you time and effort, except for this condition:

I set several column on my table like id_user1, id_user2, id_user3, etc, which all of them looks-up into the same 'user' table,

and of course all links into the same id_user column.
The problem is when only one id_user available to select, all of selection of id_user1, id_user2, id_user3, etc are selected automatically,

into the same id, while only one of them are required to selected.
So basically, i need the id_user1, id_user2, id_user3, are points into different id_user, thus makes

only id_user1 are (automatically) selected, while the rest of then remains unselected.
There it is.

And please bear my lousy english, people, for it is not my native language.
Best regards,

Abe