I updated the code around demo_data['credit_score'] to not return an error when there is no input.
There is a problem with the creation of dictionaries when not all fields are entered in the forms. For example, if 'has_car' is not checked yes or no, then a key error will return because the 'has_car' key will not exist in the demo_data dictionary. I do not know why this is. Something similar seems to happen for enrollment_form['referreal_source']. Changing the getEnrollmentForm function seemed to fix it.
I updated the code around demo_data['credit_score'] to not return an error when there is no input.
There is a problem with the creation of dictionaries when not all fields are entered in the forms. For example, if 'has_car' is not checked yes or no, then a key error will return because the 'has_car' key will not exist in the demo_data dictionary. I do not know why this is. Something similar seems to happen for enrollment_form['referreal_source']. Changing the getEnrollmentForm function seemed to fix it.
Please advise.