Update field value base on another field input