Hook up outcome status to hidden input field