Set conditional logic to update a form field value