Update a form field value if one field is greater/less than some other field