     $triggerElement.on "change", ->
       # pop out of condition into rules to handle all conditions defined in the rule
       # TODO it seems this is looping through ALL data-rule in the DOM instead of the data-rule associated with the element that triggered the onchange event-kdh
-      $($triggerElement).closest(".form-container-repeater").find("[data-rule]").each ->
+      $("[data-rule]").each ->
         $ruleElement = $(this)
-        $container = $(this).closest(".form-container-repeater")
         rule = $.parseJSON($ruleElement.attr("data-rule")).rule_hash
         matchType = rule.match_type
         questionId = $triggerElement.closest('.form-container-entry-item').attr('data-question-id')

class @ConditionalLogic

  self = ConditionalLogic.prototype


      #console.log rule
      $(rule.conditions).each ->
        $ruleElement = $ruleElement
        condition = this
        #console.log condition
        questionId = condition.question_id
        $triggerContainer = $ruleElement.closest('.form-container-survey').find("[data-question-id=" + questionId + "]")
        # getting element on edit and new page
        $triggerElement = $triggerContainer.find(".form-control")
