There is not PHP code running during input on the front end. Conditional logic is all handled by JavaScript. To do something like this you would need to add your own custom JS. https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/