Fix #764 Dropdown to switch field between layers now works correctly. Changed selector to code because spaces in names where causing problems