code: function submitFormData(req, res, next) {
    var submission = req.body || {};
  
    submission.appId = req.params.projectid;
    submission.appEnvironment = req.params.environment;
    submission.deviceId = submission.deviceId || "Device Unknown";
  
    var submissionParams = {
      submission: submission
    };
  
    logger.debug("Middleware: form submitFormData: ", {params: submissionParams});
  
    forms.submitFormData(_.extend(submissionParams, req.connectionOptions), formsResultHandlers(constants.resultTypes.submissions, req, next));
  }
docs: Make A Submission Against A Form
  @param req
  @param res
  @param next