How to pass values from one field to other