adding ability to store the selected output value in a field