Skip to content

Commit

Permalink
fix education field
Browse files Browse the repository at this point in the history
  • Loading branch information
vaneck237 committed Aug 23, 2024
1 parent 43e367b commit 85cda16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ android {
}
comoresDev {
applicationId "org.openimis.imispolicies.comoresDev"
buildConfigField "String", "API_BASE_URL", '"https://dev.amg.km/"'
buildConfigField "String", "API_BASE_URL", '"https://test.amg.km/"'
resValue "string", "app_name_policies", "Policies Comores"
dimension = 'std'
}
Expand Down
16 changes: 12 additions & 4 deletions app/src/main/assets/pages/Insuree.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$(document).ready(function () {

$('#PaymentMethod').hide();
$("#Education").hide();

//Hide the relationship if the insuree is the HOF
if (sessionStorage.getItem("FamilyData") !== null || sessionStorage.getItem("SubFamilyData") !== null) {
Expand Down Expand Up @@ -69,15 +70,17 @@ $(document).ready(function () {
$("#hfNewPhotoPath").val("");
});

$('#txtBirthDate').change(function () {
fillAge($(this).val());
});
//$('#txtBirthDate').change(function () {
// fillAge($(this).val());
//});

$('#ddlRelationship').change(function () {
var relationId = $('#ddlRelationship').val();
if (relationId == 4) {
$("#Education").show();
$('#ddlEducation').prop("required", true);
} else {
$("#Education").hide();
$("#ddlEducation").prop("required", false);
}
});
Expand Down Expand Up @@ -214,6 +217,7 @@ $(document).ready(function () {
var PhotoPath = $.parseJSON(Insuree)[0]["PhotoPath"];
var IsOffline = parseInt($.parseJSON(Insuree)[0]["isOffline"]);
var marital = $.parseJSON(Insuree)[0]["Marital"];
var relation = $.parseJSON(Insuree)[0]["Relationship"];
var payment = $.parseJSON(Insuree)[0]["PaymentMethod"];
var dob = $.parseJSON(Insuree)[0]["DOB"];
if ($.parseJSON(Insuree)[0]["isHead"] == "true" || $.parseJSON(Insuree)[0]["isHead"] == "false") {
Expand All @@ -238,7 +242,11 @@ $(document).ready(function () {
}
}

fillAge(dob);
//fillAge(dob);

if(relation == 4){
$("#Education").show();
}

if (marital == 'P') {
$('#OtherHousehold').show();
Expand Down

0 comments on commit 85cda16

Please sign in to comment.