button_options_to_value function Created.