Control value of input fields with toggle buttons