Auto-update terms based on form fields