Tab wise behavior

Drop-down field type behavior is different on different tabs. One it shows a pop up window with LOVs and other it is general LOVs listed below in field. How to handle this, as same script cannot be executed on both

Add an if condition and execute first one for the first tab and write different code in else for handling the other tab.

You can watch this