diff --git a/edivorce/apps/core/static/js/functions.js b/edivorce/apps/core/static/js/functions.js index 8b0f20e2..399a3618 100644 --- a/edivorce/apps/core/static/js/functions.js +++ b/edivorce/apps/core/static/js/functions.js @@ -91,6 +91,10 @@ var showHideTargetId = function(el, id, relatedId, revealControlGroup) { if (id === "#has_children") { reveal($("input[name=number_children_over_19]")); } + // Special case of hide child support description. + if (id === "#child_support_in_order_detail") { + $("#child_support_description").hide(); + } // reveal nested question as well if (id === "#marriage_certificate") { @@ -115,6 +119,11 @@ var showHideTargetId = function(el, id, relatedId, revealControlGroup) { $(el.data("reveal_force_hide_group")).find(':radio').prop('checked', false); } + // Special case of show child support description. + if (id === "#child_support_in_order_detail") { + $("#child_support_description").show(); + } + if (relatedId !== undefined){ $('#' + relatedId).show(); } @@ -147,6 +156,12 @@ var showHideRevealClass = function(el, targetCssClass) { } else { if (targetCssClass !== undefined){ $('.' + targetCssClass).show(); + // This is to handle special case where multiple reveal options applied. + if (targetCssClass === 'support-amount-match') { + if ($("input[name=claimants_agree_to_child_support_amount]:checked").val() === 'YES') { + $('#what_special_provisions').hide(); + } + } } } }; diff --git a/edivorce/apps/core/templates/pdf/form1.html b/edivorce/apps/core/templates/pdf/form1.html index 0d23a383..bd6d3580 100644 --- a/edivorce/apps/core/templates/pdf/form1.html +++ b/edivorce/apps/core/templates/pdf/form1.html @@ -420,14 +420,14 @@
You need to include each of the orders you want pertaining to guardianship, parental responsibilities and parenting time, and contact with the child. You will need to write them as if a Judge is telling you to do it. @@ -311,7 +323,7 @@ {% input_field type="textarea" name="order_respecting_arrangement" class="response-textarea form-control" maxlength="20000" rows="7"%}