function onTestTypeChange()

in CDS.solutions/EducationAcceleratorCommon/Extracts/Base/WebResources/mshied_/Scripts/Forms/mshied_testscore.js [48:80]


        function onTestTypeChange() {
            hideSections(TAB_NAME, ALL_SECTIONS);

            var testTypeName;
            var testTypeValue = testTypeControl.getAttribute().getValue();
            if (testTypeValue && testTypeValue.length > 0 && testTypeValue[0].name) {
                testTypeName = testTypeValue[0].name.toUpperCase();
            }

            switch (testTypeName) {
                case 'ACT':
                    showSection(TAB_NAME, 'act_section');
                    break;
                case 'GMAT':
                    showSection(TAB_NAME, 'gmat_section');
                    break;
                case 'GRE':
                    showSection(TAB_NAME, 'gre_section');
                    break;
                case 'IELTS':
                    showSection(TAB_NAME, 'ielts_section');
                    break;
                case 'SAT':
                    showSection(TAB_NAME, 'sat_section');
                    break;
                case 'TOEFL':
                    showSection(TAB_NAME, 'toefl_section');
                    break;
                default:
                    showSections(TAB_NAME, ALL_SECTIONS);
                    break;
            }
        }