How to create dependencies among field values (Revised)?