 
   #clear questions
   clearQuestions: (container) ->
-    container.find("input[type!=hidden]").val("")
+    # container.find("input[type!=hidden]").val("")
 
   #evaluate conditional logic rules
   evaluateRules: (operator, answer, value) ->

      $ruleElement = $(this)
      if $ruleElement.attr('data-rule').length > 0
        rule = $.parseJSON($ruleElement.attr("data-rule")).rule
        console.log rule
        $(rule.conditions).each ->
          questionId = this.question_id
          $triggerContainer = $("[data-question-id=" + questionId + "]")
          $triggerElement = $triggerContainer.find('.form-control')
          self.setDefaultState(rule.question_id, $triggerElement, this.operator, this.answer)
          self.bindConditions(rule.question_id, $triggerElement, this.operator, this.answer)
    return

  # set the default hide show conditions


  # get value of triggering question
  getValue: ($conditionElement) ->
    if $conditionElement.is(":radio")
      if $conditionElement.is(":checked")
        return $conditionElement.val()
      else
        return
    if $conditionElement.is(":checkbox")
      if $conditionElement.is(":checked")
        return $conditionElement.val()
      else
        return
    $conditionElement.val()

$ ->
