Updating a form field value depending on the chosen answer