getSubFormData() {
    if (_.get(this.subForm, 'form.display') === 'pdf') {
      return this.subForm.getSubmission();
    }
    else {
      return Promise.resolve(this.dataValue);
    }
  }
Returns the data for the subform.
@returns {*} - the data for the subform.