I have configured the form to display a confirmation message.
When I fill out the form and click submit, the form does not display the confirmation message or log the form data to the database.
After filling out the form and clicking submit, the same start page form displays again in the browser.
Only after filling out the form a second time does the confirmation message finally appear and the data get written to the database.
No caching is enabled in Joomla, I configured the form to use Absolute URL per other posts on the forum but it continues to have this issue.
The only extra I have in the form is some javascript to populate the select controls with options.
settings:
{
"form": {
"uid": "form",
"type": "contact",
"utype": "settings",
"behaviors": {
"data": [
"check_security_fields",
"upload_files",
"validate_fields",
"admin_email",
"confirmation_message",
"log_data"
]
},
"upload": {
"path": ""
},
"admin_email": {
"recipients": [
"example@example.com"
],
"subject": "Someone has filled {form:title} on {site:title}!",
"body": "we have received the following details:\\r\\n<br><br>\\r\\n{email_content}"
},
"confirmation_message": {
"content": "Thanks for being awesome!"
}
},
"__lastsave": 1632369609
}
pages:
{
"1": {
"pgroup": "1",
"minimized": "0",
"name": "start_page",
"desc": ""
},
"2": {
"pgroup": "1",
"minimized": "0",
"name": "end_page",
"desc": ""
}
}
views:So what is the issue? Is this form have a buggg
{
"1": {
"uid": "1",
"_parent": "",
"_area": "1",
"name": "field_text_1",
"wtitle": "",
"utype": "views",
"type": "field_text",
"nodes": {
"label": {
"content": "School Name"
},
"main": {
"attrs": {
"name": "school_name",
"value": "",
"placeholder": "Name of School"
}
}
},
"behaviors": {
"field_text": [
"field_value_placeholder"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"2": {
"uid": "2",
"_parent": "",
"_area": "1",
"name": "field_text_2",
"wtitle": "",
"utype": "views",
"type": "field_text",
"nodes": {
"label": {
"content": "Teacher Name"
},
"main": {
"attrs": {
"name": "teacher_name",
"value": "",
"placeholder": "Name of Teacher"
}
}
},
"behaviors": {
"field_text": [
"field_value_placeholder"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"3": {
"uid": "3",
"_parent": "",
"_area": "1",
"name": "field_text_3",
"wtitle": "",
"utype": "views",
"type": "field_text",
"nodes": {
"label": {
"content": "First Name"
},
"main": {
"attrs": {
"name": "first_name",
"value": "",
"placeholder": "First Name of Student"
}
}
},
"behaviors": {
"field_text": [
"field_value_placeholder"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"9": {
"uid": "9",
"_parent": "",
"_area": "1",
"name": "field_text_9",
"wtitle": "",
"utype": "views",
"type": "field_text",
"nodes": {
"label": {
"content": "Last Name"
},
"main": {
"attrs": {
"name": "last_name",
"value": "",
"placeholder": "Last Name of Student"
}
}
},
"behaviors": {
"field_text": [
"field_value_placeholder"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"4": {
"uid": "4",
"_parent": "",
"_area": "1",
"name": "field_text_4",
"wtitle": "",
"utype": "views",
"type": "field_text",
"nodes": {
"label": {
"content": "GPA"
},
"main": {
"attrs": {
"name": "gpa",
"value": "",
"placeholder": "1.0"
}
}
},
"behaviors": {
"field_text": [
"field_value_placeholder"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required",
"field_validation_numbers",
"field_validation_custom"
]
},
"fns": {
"validation": {
"fields": {
"4": {
"rules": {
"integer": "",
"decimal": "",
"number": "true"
},
"crules": {
"1": {
"name": "validGpa",
"error": "GPA must be between 1.0 and 4.0.",
"jsdef": "function isValidGpa(val) {\\r\\n let gpa = val ? parseFloat(val) : null;\\r\\n return gpa && gpa > 0.0 && gpa <= 4.0;\\r\\n}",
"phpdef": ""
}
}
}
}
}
}
},
"5": {
"uid": "5",
"_parent": "",
"_area": "1",
"name": "field_select_5",
"wtitle": "",
"utype": "views",
"type": "field_select",
"nodes": {
"label": {
"content": "First Choice Career Cluster"
},
"main": {
"attrs": {
"name": "first_choice_career_cluster"
}
}
},
"behaviors": {
"field_select": [
"field_select_clearable"
],
"html": [
"view_events"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"6": {
"uid": "6",
"_parent": "",
"_area": "1",
"name": "field_select_6",
"wtitle": "",
"utype": "views",
"type": "field_select",
"nodes": {
"label": {
"content": "First Choice Occupation"
},
"main": {
"attrs": {
"name": "first_choice_occupation"
}
}
},
"behaviors": {
"field_select": [
"field_select_clearable"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"7": {
"uid": "7",
"_parent": "",
"_area": "1",
"name": "field_select_7",
"wtitle": "",
"utype": "views",
"type": "field_select",
"nodes": {
"label": {
"content": "Second Choice Career Cluster"
},
"main": {
"attrs": {
"name": "second_choice_career_cluster"
}
}
},
"behaviors": {
"field_select": [
"field_select_clearable"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"8": {
"uid": "8",
"_parent": "",
"_area": "1",
"name": "field_select_8",
"wtitle": "",
"utype": "views",
"type": "field_select",
"nodes": {
"label": {
"content": "Second Choice Occupation"
},
"main": {
"attrs": {
"name": "second_choice_occupation"
}
}
},
"behaviors": {
"field_select": [
"field_select_clearable"
],
"data": [
"field_email",
"field_dblog",
"field_validate"
],
"validation": [
"field_validation_required"
]
}
},
"10": {
"uid": "10",
"_parent": "",
"_area": "1",
"name": "javascript_10",
"wtitle": "",
"utype": "views",
"type": "javascript",
"domready": "1",
"content": "const education_level = [];\\r\\neducation_level[0] = {'id': 0, 'display_name': 'Doctoral or Advanced Degree', 'minimum_gpa': 3.80};\\r\\neducation_level[1] = {'id': 1, 'display_name': 'Masters Degree', 'minimum_gpa': 3.50};\\r\\neducation_level[2] = {'id': 2, 'display_name': 'Bachelors Degree', 'minimum_gpa': 3.00};\\r\\neducation_level[3] = {'id': 3, 'display_name': 'Technical or Associates Degree', 'minimum_gpa': 2.00};\\r\\neducation_level[4] = {'id': 4, 'display_name': 'High School Diploma', 'minimum_gpa': 1.70};\\r\\neducation_level[5] = {'id': 5, 'display_name': 'No Formal Education', 'minimum_gpa': 0.00};\\r\\n\\r\\nconst career_type = [];\\r\\ncareer_type[0] = {'id': 0, 'display_name': 'Agriculture, Food & Natural Resources'};\\r\\ncareer_type[1] = {'id': 1, 'display_name': 'Architecture & Construction'};\\r\\ncareer_type[2] = {'id': 2, 'display_name': 'Arts, Audio\\\\\\\\Visual Technology & Communications'};\\r\\ncareer_type[3] = {'id': 3, 'display_name': 'Business Management & Administration'};\\r\\ncareer_type[4] = {'id': 4, 'display_name': 'Education & Training'};\\r\\ncareer_type[5] = {'id': 5, 'display_name': 'Finance'};\\r\\ncareer_type[6] = {'id': 6, 'display_name': 'Government & Public Administration'};\\r\\ncareer_type[7] = {'id': 7, 'display_name': 'Health Science'};\\r\\ncareer_type[8] = {'id': 8, 'display_name': 'Hospitality & Tourism'};\\r\\ncareer_type[9] = {'id': 9, 'display_name': 'Human Services'};\\r\\ncareer_type[10] = {'id': 10, 'display_name': 'Information Technology'};\\r\\ncareer_type[11] = {'id': 11, 'display_name': 'Law, Public Safety, Corrections & Security'};\\r\\ncareer_type[12] = {'id': 12, 'display_name': 'Manufacturing'};\\r\\ncareer_type[13] = {'id': 13, 'display_name': 'Marketing'};\\r\\ncareer_type[14] = {'id': 14, 'display_name': 'Science, Technology, Engineering & Mathematics'};\\r\\ncareer_type[15] = {'id': 15, 'display_name': 'Transportation, Distribution & Logistics'};\\r\\n\\r\\nconst occupation = [];\\r\\noccupation[0] = {'id': 0, 'career_type_id': 16, 'education_level_id': 6, 'display_name': ''};\\r\\noccupation[1] = {'id': 1, 'career_type_id': 10, 'education_level_id': 2, 'display_name': '3D Designer'};\\r\\noccupation[2] = {'id': 2, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Accountant'};\\r\\noccupation[3] = {'id': 3, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Actor'};\\r\\noccupation[4] = {'id': 4, 'career_type_id': 3, 'education_level_id': 3, 'display_name': 'Administrative Assistant'};\\r\\noccupation[5] = {'id': 5, 'career_type_id': 9, 'education_level_id': 1, 'display_name': 'Adoption Counselor'};\\r\\noccupation[6] = {'id': 6, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Advertising Account Executive'};\\r\\noccupation[7] = {'id': 7, 'career_type_id': 13, 'education_level_id': 4, 'display_name': 'Advertising Clerk'};\\r\\noccupation[8] = {'id': 8, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Advertising Manager'};\\r\\noccupation[9] = {'id': 9, 'career_type_id': 4, 'education_level_id': 4, 'display_name': 'Aerobics Instructor'};\\r\\noccupation[10] = {'id': 10, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Aerospace Engineer'};\\r\\noccupation[11] = {'id': 11, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Aerospace Engineering Technician'};\\r\\noccupation[12] = {'id': 12, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Agent\\\\\\\\Business Manager'};\\r\\noccupation[13] = {'id': 13, 'career_type_id': 0, 'education_level_id': 2, 'display_name': 'Agriculture Engineer'};\\r\\noccupation[14] = {'id': 14, 'career_type_id': 0, 'education_level_id': 2, 'display_name': 'Agriculture Inspector'};\\r\\noccupation[15] = {'id': 15, 'career_type_id': 0, 'education_level_id': 2, 'display_name': 'Agriculture Scientist'};\\r\\noccupation[16] = {'id': 16, 'career_type_id': 15, 'education_level_id': 2, 'display_name': 'Air Traffic Controller'};\\r\\noccupation[17] = {'id': 17, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Aircraft Technician'};\\r\\noccupation[18] = {'id': 18, 'career_type_id': 15, 'education_level_id': 2, 'display_name': 'Airline Co-Pilot'};\\r\\noccupation[19] = {'id': 19, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Airline Ticket Agent'};\\r\\noccupation[20] = {'id': 20, 'career_type_id': 11, 'education_level_id': 4, 'display_name': 'Ambulance Driver'};\\r\\noccupation[21] = {'id': 21, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Anesthesia Technician'};\\r\\noccupation[22] = {'id': 22, 'career_type_id': 0, 'education_level_id': 4, 'display_name': 'Animal Breeder'};\\r\\noccupation[23] = {'id': 23, 'career_type_id': 0, 'education_level_id': 4, 'display_name': 'Animal Caretaker'};\\r\\noccupation[24] = {'id': 24, 'career_type_id': 11, 'education_level_id': 4, 'display_name': 'Animal Control Worker'};\\r\\noccupation[25] = {'id': 25, 'career_type_id': 0, 'education_level_id': 5, 'display_name': 'Animal Groomer'};\\r\\noccupation[26] = {'id': 26, 'career_type_id': 0, 'education_level_id': 2, 'display_name': 'Animal Scientist'};\\r\\noccupation[27] = {'id': 27, 'career_type_id': 0, 'education_level_id': 4, 'display_name': 'Animal Trainer'};\\r\\noccupation[28] = {'id': 28, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Animator - Computer'};\\r\\noccupation[29] = {'id': 29, 'career_type_id': 14, 'education_level_id': 1, 'display_name': 'Anthropologist'};\\r\\noccupation[30] = {'id': 30, 'career_type_id': 12, 'education_level_id': 3, 'display_name': 'Appliance Installer & Repairer'};\\r\\noccupation[31] = {'id': 31, 'career_type_id': 5, 'education_level_id': 3, 'display_name': 'Appraiser'};\\r\\noccupation[32] = {'id': 32, 'career_type_id': 14, 'education_level_id': 1, 'display_name': 'Archeologist'};\\r\\noccupation[33] = {'id': 33, 'career_type_id': 1, 'education_level_id': 1, 'display_name': 'Architect'};\\r\\noccupation[34] = {'id': 34, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Architectural Drafter'};\\r\\noccupation[35] = {'id': 35, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Architectural Engineer'};\\r\\noccupation[36] = {'id': 36, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Artist'};\\r\\noccupation[37] = {'id': 37, 'career_type_id': 4, 'education_level_id': 1, 'display_name': 'Assist Collegiate Athletic Dir'};\\r\\noccupation[38] = {'id': 38, 'career_type_id': 4, 'education_level_id': 2, 'display_name': 'Assistant Collegiate Coach'};\\r\\noccupation[39] = {'id': 39, 'career_type_id': 8, 'education_level_id': 3, 'display_name': 'Assistant Restaurant Manager'};\\r\\noccupation[40] = {'id': 40, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Astronaut'};\\r\\noccupation[41] = {'id': 41, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Astronomer'};\\r\\noccupation[42] = {'id': 42, 'career_type_id': 8, 'education_level_id': 3, 'display_name': 'Athlete'};\\r\\noccupation[43] = {'id': 43, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Athletic Trainer'};\\r\\noccupation[44] = {'id': 44, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Auditor'};\\r\\noccupation[45] = {'id': 45, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Auto Body Repairer'};\\r\\noccupation[46] = {'id': 46, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Auto Glass Installer'};\\r\\noccupation[47] = {'id': 47, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Automobile Detailer'};\\r\\noccupation[48] = {'id': 48, 'career_type_id': 15, 'education_level_id': 1, 'display_name': 'Automotive Engineer'};\\r\\noccupation[49] = {'id': 49, 'career_type_id': 8, 'education_level_id': 3, 'display_name': 'Baker'};\\r\\noccupation[51] = {'id': 51, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Bicycle Repairer'};\\r\\noccupation[52] = {'id': 52, 'career_type_id': 15, 'education_level_id': 2, 'display_name': 'Bike Designer'};\\r\\noccupation[53] = {'id': 53, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Biochemist'};\\r\\noccupation[54] = {'id': 54, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Biological Scientist'};\\r\\noccupation[55] = {'id': 55, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Biological Technician'};\\r\\noccupation[56] = {'id': 56, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Biologist'};\\r\\noccupation[57] = {'id': 57, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Biomedical Engineer'};\\r\\noccupation[58] = {'id': 58, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Biotech Scientist'};\\r\\noccupation[59] = {'id': 59, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Bookkeeper\\\\\\\\Accounting Clerk'};\\r\\noccupation[60] = {'id': 60, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Bricklayer\\\\\\\\Stone Mason'};\\r\\noccupation[61] = {'id': 61, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Broadcast Technician'};\\r\\noccupation[62] = {'id': 62, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Building Maintenance Worker'};\\r\\noccupation[63] = {'id': 63, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Bulldozer Operator'};\\r\\noccupation[64] = {'id': 64, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Bus Driver - Public Transit'};\\r\\noccupation[65] = {'id': 65, 'career_type_id': 3, 'education_level_id': 2, 'display_name': 'Business Executive'};\\r\\noccupation[66] = {'id': 66, 'career_type_id': 3, 'education_level_id': 2, 'display_name': 'Business Manager'};\\r\\noccupation[67] = {'id': 67, 'career_type_id': 3, 'education_level_id': 3, 'display_name': 'Business Owner'};\\r\\noccupation[68] = {'id': 68, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Buyer & Purchasing Agent'};\\r\\noccupation[69] = {'id': 69, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Cabinetmaker'};\\r\\noccupation[70] = {'id': 70, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'CAD Drafter'};\\r\\noccupation[71] = {'id': 71, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Camera Operator'};\\r\\noccupation[72] = {'id': 72, 'career_type_id': 13, 'education_level_id': 4, 'display_name': 'Car Salesperson'};\\r\\noccupation[73] = {'id': 73, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Cardiovascular Technologist'};\\r\\noccupation[75] = {'id': 75, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'CAT Scan Technologist'};\\r\\noccupation[76] = {'id': 76, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Chef'};\\r\\noccupation[77] = {'id': 77, 'career_type_id': 12, 'education_level_id': 2, 'display_name': 'Chemical Engineer'};\\r\\noccupation[78] = {'id': 78, 'career_type_id': 12, 'education_level_id': 2, 'display_name': 'Chemical Engineer Technician'};\\r\\noccupation[79] = {'id': 79, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Chemist'};\\r\\noccupation[80] = {'id': 80, 'career_type_id': 9, 'education_level_id': 4, 'display_name': 'Child Care Worker'};\\r\\noccupation[81] = {'id': 81, 'career_type_id': 9, 'education_level_id': 0, 'display_name': 'Children\\\\'s Psychologist'};\\r\\noccupation[82] = {'id': 82, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Chiropractor'};\\r\\noccupation[83] = {'id': 83, 'career_type_id': 2, 'education_level_id': 4, 'display_name': 'Choreographer\\\\\\\\Dance Instructor'};\\r\\noccupation[84] = {'id': 84, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Civil Drafter'};\\r\\noccupation[85] = {'id': 85, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Civil Engineer'};\\r\\noccupation[86] = {'id': 86, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Civil Engineering Technician'};\\r\\noccupation[87] = {'id': 87, 'career_type_id': 4, 'education_level_id': 2, 'display_name': 'Coach'};\\r\\noccupation[88] = {'id': 88, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Communications Engineer'};\\r\\noccupation[89] = {'id': 89, 'career_type_id': 10, 'education_level_id': 1, 'display_name': 'Communications Manager'};\\r\\noccupation[90] = {'id': 90, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Engineer'};\\r\\noccupation[91] = {'id': 91,\\r\\n'career_type_id': 10, 'education_level_id': 1, 'display_name': 'Computer Hardware Engineer'};\\r\\noccupation[92] = {'id': 92, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Network Admin'};\\r\\noccupation[93] = {'id': 93, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Computer Operator'};\\r\\noccupation[94] = {'id': 94, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Programmer'};\\r\\noccupation[95] = {'id': 95, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Scientist'};\\r\\noccupation[96] = {'id': 96, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Security Specialist'};\\r\\noccupation[97] = {'id': 97, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Software Engineer'};\\r\\noccupation[98] = {'id': 98, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Support Specialist'};\\r\\noccupation[99] = {'id': 99, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer System Analyst'};\\r\\noccupation[100] = {'id': 100, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Systems Admin'};\\r\\noccupation[101] = {'id': 101, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Systems Manager'};\\r\\noccupation[102] = {'id': 102, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Computer Tech Manager'};\\r\\noccupation[103] = {'id': 103, 'career_type_id': 10, 'education_level_id': 3, 'display_name': 'Computer Technician'};\\r\\noccupation[104] = {'id': 104, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Conservation Scientist'};\\r\\noccupation[105] = {'id': 105, 'career_type_id': 6, 'education_level_id': 3, 'display_name': 'Construction & Building Inspector'};\\r\\noccupation[106] = {'id': 106, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Construction Engineer'};\\r\\noccupation[107] = {'id': 107, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Construction Manager'};\\r\\noccupation[108] = {'id': 108, 'career_type_id': 1, 'education_level_id': 5, 'display_name': 'Construction Worker'};\\r\\noccupation[109] = {'id': 109, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Contractor'};\\r\\noccupation[110] = {'id': 110, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Cosmetologist\\\\\\\\Hairstylist'};\\r\\noccupation[111] = {'id': 111, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Crane & Tower Operator'};\\r\\noccupation[112] = {'id': 112, 'career_type_id': 11, 'education_level_id': 4, 'display_name': 'Crime Scene Investigator'};\\r\\noccupation[113] = {'id': 113, 'career_type_id': 13, 'education_level_id': 4, 'display_name': 'Customer Service Representative'};\\r\\noccupation[114] = {'id': 114, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Dancer'};\\r\\noccupation[115] = {'id': 115, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Data Communication Analyst'};\\r\\noccupation[116] = {'id': 116, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Database Administrator'};\\r\\noccupation[117] = {'id': 117, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Day Care Owner'};\\r\\noccupation[118] = {'id': 118, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Demolition Worker'};\\r\\noccupation[119] = {'id': 119, 'career_type_id': 13, 'education_level_id': 4, 'display_name': 'Demonstrator & Promoter'};\\r\\noccupation[120] = {'id': 120, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Dental Assistant'};\\r\\noccupation[121] = {'id': 121, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Dental Hygienist'};\\r\\noccupation[122] = {'id': 122, 'career_type_id': 7, 'education_level_id': 4, 'display_name': 'Dental Laboratory Technician'};\\r\\noccupation[123] = {'id': 123, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Dentist'};\\r\\noccupation[124] = {'id': 124, 'career_type_id': 11, 'education_level_id': 3, 'display_name': 'Detective\\\\\\\\Investigator'};\\r\\noccupation[125] = {'id': 125, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Dietitian \\\\\\\\ Nutritionist'};\\r\\noccupation[126] = {'id': 126, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Editor'};\\r\\noccupation[127] = {'id': 127, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Electrical Drafter'};\\r\\noccupation[128] = {'id': 128, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Electrical Engineer'};\\r\\noccupation[129] = {'id': 129, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Electrical Engineering Technician'};\\r\\noccupation[130] = {'id': 130, 'career_type_id': 12, 'education_level_id': 3, 'display_name': 'Electrical Equipment Repairman'};\\r\\noccupation[131] = {'id': 131, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Electrician'};\\r\\noccupation[132] = {'id': 132, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Emergency Medical Technician'};\\r\\noccupation[133] = {'id': 133, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Engineer'};\\r\\noccupation[134] = {'id': 134, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Engineering Tech'};\\r\\noccupation[135] = {'id': 135, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Environmental Engineer'};\\r\\noccupation[136] = {'id': 136, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Environmental Science Technician'};\\r\\noccupation[137] = {'id': 137, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Environmental Scientist'};\\r\\noccupation[138] = {'id': 138, 'career_type_id': 8, 'education_level_id': 2, 'display_name': 'Event Planner'};\\r\\noccupation[139] = {'id': 139, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Executive Secretary'};\\r\\noccupation[140] = {'id': 140, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Explosives Worker'};\\r\\noccupation[141] = {'id': 141, 'career_type_id': 0, 'education_level_id': 4, 'display_name': 'Farm Manager'};\\r\\noccupation[142] = {'id': 142, 'career_type_id': 0, 'education_level_id': 5, 'display_name': 'Farm\\\\\\\\Ranch Worker'};\\r\\noccupation[143] = {'id': 143, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Fashion Designer'};\\r\\noccupation[144] = {'id': 144, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Fashion Editor'};\\r\\noccupation[145] = {'id': 145, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'FBI Agent'};\\r\\noccupation[146] = {'id': 146, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'File Clerk'};\\r\\noccupation[147] = {'id': 147, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Film\\\\\\\\Video Editor'};\\r\\noccupation[148] = {'id': 148, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Financial Analyst'};\\r\\noccupation[149] = {'id': 149, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Financial Manager'};\\r\\noccupation[150] = {'id': 150, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Financial Planner'};\\r\\noccupation[151] = {'id': 151, 'career_type_id': 11, 'education_level_id': 3, 'display_name': 'Fire Fighter'};\\r\\noccupation[152] = {'id': 152, 'career_type_id': 0, 'education_level_id': 3, 'display_name': 'Fish & Game Warden'};\\r\\noccupation[153] = {'id': 153, 'career_type_id': 4, 'education_level_id': 4, 'display_name': 'Fitness Trainer'};\\r\\noccupation[154] = {'id': 154, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Flight Attendant'};\\r\\noccupation[155] = {'id': 155, 'career_type_id': 8, 'education_level_id': 3, 'display_name': 'Floral Designer'};\\r\\noccupation[156] = {'id': 156, 'career_type_id': 12, 'education_level_id': 4, 'display_name': 'Food Processing Worker'};\\r\\noccupation[157] = {'id': 157, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Food Stylist'};\\r\\noccupation[158] = {'id': 158, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'Forensic Science Technician'};\\r\\noccupation[159] = {'id': 159, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'Forest Ranger'};\\r\\noccupation[160] = {'id': 160, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Funeral Director'};\\r\\noccupation[161] = {'id': 161, 'career_type_id': 0, 'education_level_id': 5, 'display_name': 'Gardener'};\\r\\noccupation[162] = {'id': 162, 'career_type_id': 12, 'education_level_id': 3, 'display_name': 'Gas & Oil Driller'};\\r\\noccupation[163] = {'id': 163, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'General Maintenance Worker'};\\r\\noccupation[164] = {'id': 164, 'career_type_id': 3, 'education_level_id': 2, 'display_name': 'General\\\\\\\\Operations Manager'};\\r\\noccupation[165] = {'id': 165, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Geographer'};\\r\\noccupation[166] = {'id': 166, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Geologist'};\\r\\noccupation[167] = {'id': 167, 'career_type_id': 6, 'education_level_id': 1, 'display_name': 'Government Administrator'};\\r\\noccupation[168] = {'id': 168, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Graphic Designer'};\\r\\noccupation[169] = {'id': 169, 'career_type_id': 0, 'education_level_id': 3, 'display_name': 'Greenhouse Manager'};\\r\\noccupation[170] = {'id': 170, 'career_type_id': 0, 'education_level_id': 5, 'display_name': 'Groundskeeper'};\\r\\noccupation[171] = {'id': 171, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Hazardous Material Worker'};\\r\\noccupation[172] = {'id': 172, 'career_type_id': 3, 'education_level_id': 2, 'display_name': 'Health Services Administrator'};\\r\\noccupation[173] = {'id': 173, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Heavy Equipment Operator'};\\r\\noccupation[174] = {'id': 174, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Helicopter Pilot'};\\r\\noccupation[175] = {'id': 175, 'career_type_id': 4, 'education_level_id': 2, 'display_name': 'High School Athletic Director'};\\r\\noccupation[176] = {'id': 176, 'career_type_id': 14, 'education_level_id': 1, 'display_name': 'Historian'};\\r\\noccupation[177] = {'id': 177, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Hospice Nurse'};\\r\\noccupation[178] = {'id': 178, 'career_type_id': 8, 'education_level_id': 5, 'display_name': 'Host\\\\\\\\Hostess'};\\r\\noccupation[179] = {'id': 179, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Hotel Manager'};\\r\\noccupation[180] = {'id': 180, 'career_type_id': 3, 'education_level_id': 3, 'display_name': 'Human Resource Assistant'};\\r\\noccupation[181] = {'id': 181, 'career_type_id': 3, 'education_level_id': 2, 'display_name': 'Human Resource Manager'};\\r\\noccupation[182] = {'id': 182, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Industrial Engineer'};\\r\\noccupation[183] = {'id': 183, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Industrial Engineering Technician'};\\r\\noccupation[184] = {'id': 184, 'career_type_id': 12, 'education_level_id': 2, 'display_name': 'Industrial Production Manager'};\\r\\noccupation[185] = {'id': 185, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Instrumentalist'};\\r\\noccupation[186] = {'id': 186, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Insurance Agent'};\\r\\noccupation[187] = {'id': 187, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Interior Designer'};\\r\\noccupation[188] = {'id': 188, 'career_type_id': 6, 'education_level_id': 2, 'display_name': 'Interpreter\\\\\\\\Translator'};\\r\\noccupation[189] = {'id': 189, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'IT Client\\\\\\\\Server Programmer'};\\r\\noccupation[190] = {'id': 190, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Janitor\\\\\\\\Housekeeping Supervisor'};\\r\\noccupation[191] = {'id': 191, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Jeweler'};\\r\\noccupation[192] = {'id': 192, 'career_type_id': 9, 'education_level_id': 2, 'display_name': 'Journalist'};\\r\\noccupation[193] = {'id': 193, 'career_type_id': 4, 'education_level_id': 1, 'display_name': 'Jr. College Professor'};\\r\\noccupation[194] = {'id': 194, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Landscape Architect'};\\r\\noccupation[195] = {'id': 195, 'career_type_id': 0, 'education_level_id': 5, 'display_name': 'Landscaper'};\\r\\noccupation[196] = {'id': 196, 'career_type_id': 11, 'education_level_id': 0, 'display_name': 'Lawyer'};\\r\\noccupation[197] = {'id': 197, 'career_type_id': 11, 'education_level_id': 4, 'display_name': 'Legal Secretary'};\\r\\noccupation[198] = {'id': 198, 'career_type_id': 4, 'education_level_id': 1, 'display_name': 'Librarian'};\\r\\noccupation[199] = {'id': 199, 'career_type_id': 4, 'education_level_id': 4, 'display_name': 'Library Assistant'};\\r\\noccupation[200] = {'id': 200, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Licensed Practical Nurse'};\\r\\noccupation[201] = {'id': 201, 'career_type_id': 15, 'education_level_id': 2, 'display_name': 'Life Flight Helicopter Pilot'};\\r\\noccupation[202] = {'id': 202, 'career_type_id': 5, 'education_level_id': 4, 'display_name': 'Loan Clerk'};\\r\\noccupation[203] = {'id': 203, 'career_type_id': 12, 'education_level_id': 3, 'display_name': 'Locksmith'};\\r\\noccupation[204] = {'id': 204, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Locomotive Engineer'};\\r\\noccupation[205] = {'id': 205, 'career_type_id': 12, 'education_level_id': 3, 'display_name': 'Machine Tool Operator'};\\r\\noccupation[206] = {'id': 206, 'career_type_id': 9, 'education_level_id': 2, 'display_name': 'Magazine Editor'};\\r\\noccupation[207] = {'id': 207, 'career_type_id': 6, 'education_level_id': 4, 'display_name': 'Mail Carrier'};\\r\\noccupation[208] = {'id': 208, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Mail Clerk'};\\r\\noccupation[209] = {'id': 209, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Mainframe Programmer'};\\r\\noccupation[210] = {'id': 210, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Make-Up Artist'};\\r\\noccupation[211] = {'id': 211, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Manicurist'};\\r\\noccupation[212] = {'id': 212, 'career_type_id': 14, 'education_level_id': 1, 'display_name': 'Marine Biologist'};\\r\\noccupation[213] = {'id': 213, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Market Research Analyst'};\\r\\noccupation[214] = {'id': 214, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Marketing Manager'};\\r\\noccupation[215] = {'id': 215, 'career_type_id': 9, 'education_level_id': 1, 'display_name': 'Marriage & Family Therapist'};\\r\\noccupation[216] = {'id': 216, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Massage Therapist'};\\r\\noccupation[217] = {'id': 217, 'career_type_id': 14, 'education_level_id': 1, 'display_name': 'Mathematician'};\\r\\noccupation[218] = {'id': 218, 'career_type_id': 0, 'education_level_id': 3, 'display_name': 'Meat Cutter\\\\\\\\Butcher'};\\r\\noccupation[219] = {'id': 219, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Mechanic (Car, Airplane, Truck)'};\\r\\noccupation[220] = {'id': 220, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Mechanical Drafter'};\\r\\noccupation[221] = {'id': 221, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Mechanical Engineer'};\\r\\noccupation[222] = {'id': 222, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Mechanical Engineering Tech'};\\r\\noccupation[223] = {'id': 223, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Medical Administrator'};\\r\\noccupation[224] = {'id': 224, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Medical Assistant'};\\r\\noccupation[225] = {'id': 225, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Medical Laboratory Technician'};\\r\\noccupation[226] = {'id': 226, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Medical Scientist'};\\r\\noccupation[227] = {'id': 227, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Medical Tech'};\\r\\noccupation[228] = {'id': 228, 'career_type_id': 9, 'education_level_id': 1, 'display_name': 'Mental Health Counselor'};\\r\\noccupation[229] = {'id': 229, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Meteorologist'};\\r\\noccupation[230] = {'id': 230, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Midwife'};\\r\\noccupation[231] = {'id': 231, 'career_type_id': 11, 'education_level_id': 4, 'display_name': 'Military - Enlisted'};\\r\\noccupation[232] = {'id': 232, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'Military - Officer'};\\r\\noccupation[233] = {'id': 233, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'Military Aircraft Pilot'};\\r\\noccupation[234] = {'id': 234, 'career_type_id': 13, 'education_level_id': 3, 'display_name': 'Model'};\\r\\noccupation[235] = {'id': 235, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Mortician'};\\r\\noccupation[236] = {'id': 236, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Movie Director'};\\r\\noccupation[237] = {'id': 237, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'MRI Technologist'};\\r\\noccupation[238] = {'id': 238, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Music Director\\\\\\\\Composer'};\\r\\noccupation[239] = {'id': 239, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Music Producer'};\\r\\noccupation[240] = {'id': 240, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Music Therapist'};\\r\\noccupation[241] = {'id': 241, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Music Video Producer'};\\r\\noccupation[242] = {'id': 242, 'career_type_id': 2, 'education_level_id': 5, 'display_name': 'Musician'};\\r\\noccupation[243] = {'id': 243, 'career_type_id': 11, 'education_level_id': 3, 'display_name': 'National Park Warden'};\\r\\noccupation[244] = {'id': 244, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Neurobiologist'};\\r\\noccupation[245] = {'id': 245, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'News Producer'};\\r\\noccupation[246] = {'id': 246, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'News Reporter\\\\\\\\Correspondent'};\\r\\noccupation[247] = {'id': 247, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Nuclear Engineer'};\\r\\noccupation[248] = {'id': 248, 'career_type_id': 14, 'education_level_id': 3, 'display_name': 'Nuclear Technician'};\\r\\noccupation[249] = {'id': 249, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Nurse Anesthetist'};\\r\\noccupation[250] = {'id': 250, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Nurse Practitioner'};\\r\\noccupation[251] = {'id': 251, 'career_type_id': 0, 'education_level_id': 5, 'display_name': 'Nursery Worker'};\\r\\noccupation[252] = {'id': 252, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Nursing Assistant'};\\r\\noccupation[253] = {'id': 253, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Occupational Therapist'};\\r\\noccupation[254] = {'id': 254, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Occupational Therapy Assistant'};\\r\\noccupation[255] = {'id': 255, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Oceanographer'};\\r\\noccupation[256] = {'id': 256, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Office Clerk'};\\r\\noccupation[257] = {'id': 257, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Office Manager'};\\r\\noccupation[258] = {'id': 258, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Optician'};\\r\\noccupation[259] = {'id': 259, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Optometrist'};\\r\\noccupation[260] = {'id': 260, 'career_type_id': 1, 'education_level_id': 5, 'display_name': 'Painter'};\\r\\noccupation[261] = {'id': 261, 'career_type_id': 14, 'education_level_id': 1, 'display_name': 'Paleontologist'};\\r\\noccupation[262] = {'id': 262, 'career_type_id': 11, 'education_level_id': 3, 'display_name': 'Paralegal'};\\r\\noccupation[263] = {'id': 263, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Paving Equipment Operator'};\\r\\noccupation[264] = {'id': 264, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Payroll Clerk'};\\r\\noccupation[265] = {'id': 265, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Pediatric Nurse'};\\r\\noccupation[266] = {'id': 266, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Performer'};\\r\\noccupation[267] = {'id': 267, 'career_type_id': 4, 'education_level_id': 2, 'display_name': 'Personal Trainer'};\\r\\noccupation[268] = {'id': 268, 'career_type_id': 9, 'education_level_id': 4, 'display_name': 'Pest Control Worker'};\\r\\noccupation[269] = {'id': 269, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Pharmaceutical Sales Rep'};\\r\\noccupation[270] = {'id': 270, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Pharmacist'};\\r\\noccupation[271] = {'id': 271, 'career_type_id': 7, 'education_level_id': 4, 'display_name': 'Pharmacy Aide'};\\r\\noccupation[272] = {'id': 272, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Pharmacy Technician'};\\r\\noccupation[273] = {'id': 273, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Photo Stylist'};\\r\\noccupation[274] = {'id': 274, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Photographer'};\\r\\noccupation[275] = {'id': 275, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Physical Therapist'};\\r\\noccupation[276] = {'id': 276, 'career_type_id': 7, 'education_level_id': 4, 'display_name': 'Physical Therapy Aide'};\\r\\noccupation[277] = {'id': 277, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Physical Therapy Assistant'};\\r\\noccupation[278] = {'id': 278, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Physician - Residency'};\\r\\noccupation[279] = {'id': 279, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Physician - Specialist (Residency)'};\\r\\noccupation[280] = {'id': 280, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Physician Assistant'};\\r\\noccupation[281] = {'id': 281, 'career_type_id': 14, 'education_level_id': 0, 'display_name': 'Physicist'};\\r\\noccupation[282] = {'id': 282, 'career_type_id': 1, 'education_level_id': 3, 'display_name': 'Plumber'};\\r\\noccupation[283] = {'id': 283, 'career_type_id': 11, 'education_level_id': 3, 'display_name': 'Police Officer'};\\r\\noccupation[284] = {'id': 284, 'career_type_id': 6, 'education_level_id': 1, 'display_name': 'Political Scientist'};\\r\\noccupation[285] = {'id': 285, 'career_type_id': 6, 'education_level_id': 2, 'display_name': 'Politician'};\\r\\noccupation[286] = {'id': 286, 'career_type_id': 6, 'education_level_id': 4, 'display_name': 'Postal Clerk'};\\r\\noccupation[287] = {'id': 287, 'career_type_id': 6, 'education_level_id': 3, 'display_name': 'Power Plant Operator'};\\r\\noccupation[288] = {'id': 288, 'career_type_id': 4, 'education_level_id': 3, 'display_name': 'Preschool Teacher'};\\r\\noccupation[289] = {'id': 289, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Printing Press Operator'};\\r\\noccupation[290] = {'id': 290, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Producer\\\\\\\\Director'};\\r\\noccupation[291] = {'id': 291, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Professional Makeup Artist'};\\r\\noccupation[292] = {'id': 292, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Proofreader'};\\r\\noccupation[293] = {'id': 293, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Property Manager'};\\r\\noccupation[294] = {'id': 294, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Psychiatric Technician'};\\r\\noccupation[295] = {'id': 295, 'career_type_id': 9, 'education_level_id': 1, 'display_name': 'Psychologist'};\\r\\noccupation[296] = {'id': 296, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Public Relations Specialist'};\\r\\noccupation[297] = {'id': 297, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Publisher'};\\r\\noccupation[298] = {'id': 298, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Radiation Technologist'};\\r\\noccupation[299] = {'id': 299, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Radiation Therapist'};\\r\\noccupation[300] = {'id': 300, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Radio Announcer'};\\r\\noccupation[301] = {'id': 301, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Radio Broadcast Technician'};\\r\\noccupation[302] = {'id': 302, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Radio Talk Show Host'};\\r\\noccupation[303] = {'id': 303, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Railroad Worker'};\\r\\noccupation[304] = {'id': 304, 'career_type_id': 13, 'education_level_id': 3, 'display_name': 'Real Estate Agent'};\\r\\noccupation[305] = {'id': 305, 'career_type_id': 3, 'education_level_id': 3, 'display_name': 'Real Estate Appraiser'};\\r\\noccupation[306] = {'id': 306, 'career_type_id': 3, 'education_level_id': 3, 'display_name': 'Real Estate Investor'};\\r\\noccupation[307] = {'id': 307, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Receptionist'};\\r\\noccupation[308] = {'id': 308, 'career_type_id': 8, 'education_level_id': 2, 'display_name': 'Recreation Director'};\\r\\noccupation[309] = {'id': 309, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Registered Nurse'};\\r\\noccupation[310] = {'id': 310, 'career_type_id': 9, 'education_level_id': 2, 'display_name': 'Religious Leader\\\\\\\\Teacher'};\\r\\noccupation[311] = {'id': 311, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Respiratory Therapist'};\\r\\noccupation[312] = {'id': 312, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Restaurant Manager'};\\r\\noccupation[313] = {'id': 313, 'career_type_id': 13, 'education_level_id': 4, 'display_name': 'Retail Salesperson'};\\r\\noccupation[314] = {'id': 314, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Retail Store Manager'};\\r\\noccupation[315] = {'id': 315, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Robotic Engineer'};\\r\\noccupation[316] = {'id': 316, 'career_type_id': 14, 'education_level_id': 2, 'display_name': 'Roller Coaster Designer'};\\r\\noccupation[317] = {'id': 317, 'career_type_id': 13, 'education_level_id': 2, 'display_name': 'Sales Manager'};\\r\\noccupation[318] = {'id': 318, 'career_type_id': 13, 'education_level_id': 4, 'display_name': 'Salesman'};\\r\\noccupation[319] = {'id': 319, 'career_type_id': 9, 'education_level_id': 1, 'display_name': 'School Counselor'};\\r\\noccupation[320] = {'id': 320, 'career_type_id': 9, 'education_level_id': 0, 'display_name': 'School Psychologist'};\\r\\noccupation[321] = {'id': 321, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'Search & Rescue Coordinator'};\\r\\noccupation[322] = {'id': 322, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Secretary'};\\r\\noccupation[323] = {'id': 323, 'career_type_id': 11, 'education_level_id': 3, 'display_name': 'Security Guard'};\\r\\noccupation[324] = {'id': 324, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Set\\\\\\\\Exhibit Designer'};\\r\\noccupation[325] = {'id': 325, 'career_type_id': 3, 'education_level_id': 4, 'display_name': 'Shipping & Receiving Clerk'};\\r\\noccupation[326] = {'id': 326, 'career_type_id': 9, 'education_level_id': 3, 'display_name': 'Skin Care Specialist'};\\r\\noccupation[327] = {'id': 327, 'career_type_id': 6, 'education_level_id': 3, 'display_name': 'Social Science Research Assistant'};\\r\\noccupation[328] = {'id': 328, 'career_type_id': 9, 'education_level_id': 2, 'display_name': 'Social Worker'};\\r\\noccupation[329] = {'id': 329, 'career_type_id': 9, 'education_level_id': 1, 'display_name': 'Sociologist'};\\r\\noccupation[330] = {'id': 330, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Songwriter'};\\r\\noccupation[331] = {'id': 331, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Sound Engineer Technician'};\\r\\noccupation[332] = {'id': 332, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'Special Agent'};\\r\\noccupation[333] = {'id': 333, 'career_type_id': 4, 'education_level_id': 2, 'display_name': 'Special Education Teacher'};\\r\\noccupation[334] = {'id': 334, 'career_type_id': 4, 'education_level_id': 0, 'display_name': 'Speech Pathologist'};\\r\\noccupation[335] = {'id': 335, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Speech Writer'};\\r\\noccupation[336] = {'id': 336, 'career_type_id': 8, 'education_level_id': 2, 'display_name': 'Sports General Manager'};\\r\\noccupation[337] = {'id': 337, 'career_type_id': 7, 'education_level_id': 1, 'display_name': 'Sports Psychologist'};\\r\\noccupation[338] = {'id': 338, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Sports Therapist'};\\r\\noccupation[339] = {'id': 339, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Sports Therapy Assistant'};\\r\\noccupation[340] = {'id': 340, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Sportscaster'};\\r\\noccupation[341] = {'id': 341, 'career_type_id': 3, 'education_level_id': 3, 'display_name': 'Statistical Assistant'};\\r\\noccupation[342] = {'id': 342, 'career_type_id': 3, 'education_level_id': 1, 'display_name': 'Statistician'};\\r\\noccupation[343] = {'id': 343, 'career_type_id': 5, 'education_level_id': 2, 'display_name': 'Stockbroker'};\\r\\noccupation[344] = {'id': 344, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Structural Engineer'};\\r\\noccupation[345] = {'id': 345, 'career_type_id': 1, 'education_level_id': 4, 'display_name': 'Structural Metal Worker'};\\r\\noccupation[346] = {'id': 346, 'career_type_id': 2, 'education_level_id': 3, 'display_name': 'Stunt Man'};\\r\\noccupation[347] = {'id': 347, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Subway\\\\\\\\Streetcar Operator'};\\r\\noccupation[348] = {'id': 348, 'career_type_id': 7, 'education_level_id': 0, 'display_name': 'Surgeon - Residency'};\\r\\noccupation[349] = {'id': 349, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Surgical Technologist'};\\r\\noccupation[350] = {'id': 350, 'career_type_id': 1, 'education_level_id': 2, 'display_name': 'Surveyor'};\\r\\noccupation[351] = {'id': 351, 'career_type_id': 11, 'education_level_id': 2, 'display_name': 'SWAT Team Officer'};\\r\\noccupation[352] = {'id': 352, 'career_type_id': 15, 'education_level_id': 5, 'display_name': 'Taxi Driver'};\\r\\noccupation[353] = {'id': 353, 'career_type_id': 4, 'education_level_id': 4, 'display_name': 'Teacher Aide'};\\r\\noccupation[354] = {'id': 354, 'career_type_id': 4, 'education_level_id': 2, 'display_name': 'Teacher: Elem., Jr., Middle, & High'};\\r\\noccupation[355] = {'id': 355, 'career_type_id': 13, 'education_level_id': 5, 'display_name': 'Telemarketer'};\\r\\noccupation[356] = {'id': 356, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Television Host'};\\r\\noccupation[357] = {'id': 357, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Tour Guide'};\\r\\noccupation[358] = {'id': 358, 'career_type_id': 7, 'education_level_id': 2, 'display_name': 'Toxicologist'};\\r\\noccupation[359] = {'id': 359, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Toy Designer'};\\r\\noccupation[360] = {'id': 360, 'career_type_id': 15, 'education_level_id': 2, 'display_name': 'Traffic Technician'};\\r\\noccupation[361] = {'id': 361, 'career_type_id': 15, 'education_level_id': 4, 'display_name': 'Train Conductor'};\\r\\noccupation[362] = {'id': 362, 'career_type_id': 8, 'education_level_id': 4, 'display_name': 'Travel Agent'};\\r\\noccupation[363] = {'id': 363, 'career_type_id': 15, 'education_level_id': 3, 'display_name': 'Truck Driver'};\\r\\noccupation[364] = {'id': 364, 'career_type_id': 7, 'education_level_id': 3, 'display_name': 'Ultra Sound Technician'};\\r\\noccupation[365] = {'id': 365, 'career_type_id': 3, 'education_level_id': 2, 'display_name': 'Underwriter'};\\r\\noccupation[366] = {'id': 366, 'career_type_id': 12, 'education_level_id': 4, 'display_name': 'Vehicle Painter'};\\r\\noccupation[367] = {'id': 367, 'career_type_id': 0, 'education_level_id': 0, 'display_name': 'Veterinarian'};\\r\\noccupation[368] = {'id': 368, 'career_type_id': 0, 'education_level_id': 3, 'display_name': 'Veterinary Assistant'};\\r\\noccupation[369] = {'id': 369, 'career_type_id': 0, 'education_level_id': 3, 'display_name': 'Veterinary Technician'};\\r\\noccupation[370] = {'id': 370, 'career_type_id': 10, 'education_level_id': 3, 'display_name': 'Video Game Designer'};\\r\\noccupation[371] = {'id': 371, 'career_type_id': 10, 'education_level_id': 2, 'display_name': 'Video Game Programmer'};\\r\\noccupation[372] = {'id': 372, 'career_type_id': 9, 'education_level_id': 5, 'display_name': 'Waiter\\\\\\\\Waitress'};\\r\\noccupation[373] = {'id': 373, 'career_type_id': 0, 'education_level_id': 3, 'display_name': 'Water Treatment Plant Operator'};\\r\\noccupation[374] = {'id': 374, 'career_type_id': 10, 'education_level_id': 3, 'display_name': 'Web Developer'};\\r\\noccupation[375] = {'id': 375, 'career_type_id': 8, 'education_level_id': 2, 'display_name': 'Wedding Planner'};\\r\\noccupation[376] = {'id': 376, 'career_type_id': 12, 'education_level_id': 3, 'display_name': 'Welder'};\\r\\noccupation[377] = {'id': 377, 'career_type_id': 0, 'education_level_id': 2, 'display_name': 'Wild Life Management'};\\r\\noccupation[378] = {'id': 378, 'career_type_id': 2, 'education_level_id': 2, 'display_name': 'Writer'};\\r\\noccupation[379] = {'id': 379, 'career_type_id': 0, 'education_level_id': 2, 'display_name': 'Zoologist'};\\r\\n\\r\\nfunction selectOccupations(careerTypeId, educationLevelId, otherOccupationValue) {\\r\\n const result = [];\\r\\n occupation.forEach(function(val) {\\r\\n if (val.career_type_id === parseInt(careerTypeId) && val.education_level_id >= parseInt(educationLevelId)\\r\\n && val.display_name !== otherOccupationValue)\\r\\n {\\r\\n result[result.length] = val;\\r\\n }\\r\\n });\\r\\n return result.sort(function(a,b) {\\r\\n return a.display_name > b.display_name;\\r\\n });\\r\\n}\\r\\n\\r\\nfunction updateOccupations(educationLevelId) {\\r\\n const firstCareerTypeId = $('#first_choice_career_cluster').val()-1;\\r\\n const secondCareerTypeId = $('#second_choice_career_cluster').val()-1;\\r\\n const firstOccupation = $('#first_choice_occupation');\\r\\n const secondOccupation = $('#second_choice_occupation');\\r\\n\\r\\n if (firstCareerTypeId.length > 0) {\\r\\n updateCareerClusterOccupations(educationLevelId, firstCareerTypeId, firstOccupation, secondOccupation);\\r\\n }\\r\\n if (secondCareerTypeId.length > 0) {\\r\\n updateCareerClusterOccupations(educationLevelId, secondCareerTypeId, secondOccupation, firstOccupation);\\r\\n }\\r\\n}\\r\\n\\r\\nfunction updateCareerClusterOccupations(educationLevelId, careerTypeId, occupationSelect, otherOccupationSelect) {\\r\\n const occupations = selectOccupations(careerTypeId, educationLevelId, otherOccupationSelect ? otherOccupationSelect.val() : null);\\r\\n occupationSelect.empty();\\r\\n occupationSelect.val(null);\\r\\n occupationSelect.append($('<option>').val('').text('Select Occupation'));\\r\\n occupations.forEach(function(occupation){\\r\\n occupationSelect.append($('<option>').val(occupation.display_name).text(occupation.display_name));\\r\\n });\\r\\n}\\r\\n\\r\\nfunction updateCareerClusters() {\\r\\n const firstCareer = $('#first_choice_career_cluster');\\r\\n const secondCareer = $('#second_choice_career_cluster');\\r\\n firstCareer.empty();\\r\\n firstCareer.append($('<option>').val('').text('Select Career Cluster'));\\r\\n secondCareer.empty();\\r\\n secondCareer.append($('<option>').val('').text('Select Career Cluster'));\\r\\n career_type.forEach(function(careerCluster){\\r\\n firstCareer.append($('<option>').val(careerCluster.id+1).text(careerCluster.display_name));\\r\\n secondCareer.append($('<option>').val(careerCluster.id+1).text(careerCluster.display_name));\\r\\n });\\r\\n}\\r\\n\\r\\nfunction selectEducationLevelId(gpa) {\\r\\n let educationLevel = education_level[education_level.length-1];\\r\\n education_level.forEach(function(level) {\\r\\n if (level.minimum_gpa <= parseFloat(gpa) && educationLevel.minimum_gpa < level.minimum_gpa) {\\r\\n educationLevel = level;\\r\\n }\\r\\n });\\r\\n return educationLevel.id;\\r\\n}\\r\\n\\r\\nupdateCareerClusters();\\r\\n\\r\\n$('#gpa').on('change', function(e) {\\r\\n let gpa = $(this),\\r\\n newGpa = gpa.val(),\\r\\n previousGpa = gpa.data('previous_gpa');\\r\\n gpa.data('previous_gpa', newGpa);\\r\\n if (!previousGpa || parseFloat(previousGpa) > parseFloat(newGpa)) {\\r\\n updateOccupations(selectEducationLevelId(newGpa));\\r\\n }\\r\\n});\\r\\n\\r\\n$('#first_choice_career_cluster').on('change', function(e) {\\r\\n updateCareerClusterOccupations(selectEducationLevelId($('#gpa').val()), $(this).val()-1, $('#first_choice_occupation'), $('#second_choice_occupation'));\\r\\n});\\r\\n\\r\\n$('#second_choice_career_cluster').on('change', function(e) {\\r\\n updateCareerClusterOccupations(selectEducationLevelId($('#gpa').val()), $(this).val()-1, $('#second_choice_occupation'), $('#first_choice_occupation'));\\r\\n});"
},
"11": {
"uid": "11",
"_parent": "",
"_area": "1",
"name": "field_button_11",
"wtitle": "",
"utype": "views",
"type": "field_button"
"nodes": {
"main": {
"attrs": {
"type": "submit"
},
"content": "Submit Career Choices"
}
}
}
}