function showOkButton() {
        var q = this.$refs.questionComponent;

        if (this.question.type === QuestionType.SectionBreak) {
          return this.active
        }

        if (!this.question.required) {
          return true
        }

        if (this.question.allowOther && this.question.other) {
          return true
        }

        if (QuestionType.MultipleChoice && !this.question.multiple && this.question.nextStepOnAnswer) {
          return false
        }
      
        // If there is no question referenced, or dataValue is still set to its default (null).
        // This allows a ChoiceOption value of false, but will not allow you to use null as a value.
        if (!q || this.dataValue === null) {
          return false
        }

        return q.hasValue && q.isValid()
      }
/**
       * Check if the "OK" button should be shown.
       */
Check if the "OK" button should be shown.
Check if the " OK " button should be shown .
function showOkButton() {
        var q = this.$refs.questionComponent;
        if (this.question.type === QuestionType.SectionBreak) {
          return this.active
        }
        if (!this.question.required) {
          return true
        }
        if (this.question.allowOther && this.question.other) {
          return true
        }
        if (QuestionType.MultipleChoice && !this.question.multiple && this.question.nextStepOnAnswer) {
          return false
        }
        if (!q || this.dataValue === null) {
          return false
        }
        return q.hasValue && q.isValid()
      }
function showOkButton ( ) { var q = this . $refs . questionComponent ; if ( this . question . type === QuestionType . SectionBreak ) { return this . active } if ( ! this . question . required ) { return true } if ( this . question . allowOther && this . question . other ) { return true } if ( QuestionType . MultipleChoice && ! this . question . multiple && this . question . nextStepOnAnswer ) { return false } if ( ! q || this . dataValue === null ) { return false } return q . hasValue && q . isValid ( ) }
Check if the "OK" button should be shown.
Check if the " OK " button should be shown .
// If there is no question referenced, or dataValue is still set to its default (null). // This allows a ChoiceOption value of false, but will not allow you to use null as a value.