Find the appropriate code for each value on a radio button