diff --git a/edivorce/apps/core/static/js/functions.js b/edivorce/apps/core/static/js/functions.js index 1eb65273..921bcc29 100644 --- a/edivorce/apps/core/static/js/functions.js +++ b/edivorce/apps/core/static/js/functions.js @@ -105,6 +105,16 @@ var showHideTargetId = function(el, id, relatedId, revealControlGroup) { } } else { $(id).hide(); + + // This is the bit of a hack/workaround but so far this is the only case + // where we have a none nested related questions. When the first + // question is hidden, all elements in the force_hide group should also + // be hidden. + if (el.data("reveal_force_hide_group")) { + $(el.data("reveal_force_hide_group")).hide(); + $(el.data("reveal_force_hide_group")).find(':radio').prop('checked', false); + } + if (relatedId !== undefined){ $('#' + relatedId).show(); } diff --git a/edivorce/apps/core/templates/question/06_children_payor_medical.html b/edivorce/apps/core/templates/question/06_children_payor_medical.html index e7d2cf56..3bc0379d 100644 --- a/edivorce/apps/core/templates/question/06_children_payor_medical.html +++ b/edivorce/apps/core/templates/question/06_children_payor_medical.html @@ -205,7 +205,7 @@
@@ -215,7 +215,7 @@
-