How to get embedded from input value in cmaunda script while submitting embedded form

I have camunda embedded form in which i should get previous selectedDocument data and enrich it with value which is submitted now, but when i try to make this i got this erros:

TypeError: Cannot read property ‘refusalComment’ of undefined
What should i change to make this task correctly?
I have used this exmaple:https://github.com/camunda/camunda-bpm-examples/blob/master/usertask/task-form-embedded/src/main/webapp/start-form.html

here is my code:

    form role="form">
      <script cam-script type="text/form-script">
       
       var data=$scope.data=[];
camForm.on('form-loaded', function() {
  // tell the form SDK to fetch the variable named 'document'
camForm.variableManager.fetchVariable('selectedDocuments');
});
camForm.on('variables-fetched', function() {
  // work with the variable (bind it to the current AngularJS $scope)
  $scope.selectedDocuments =enrichJsonDataVar(camForm.variableManager.variableValue('selectedDocuments'));    
});
   $scope.enrichJsonDataVar=function (jsonData){
  $scope.data=jsonData;
     var form = $scope.variablesForm;
  var refusalComment = form.refusalComment.$modelValue;
 var user = form.user.$modelValue;
      console.log(refusalComment.toString());
   for(var  i=0;i<Object.keys(data).length;i++){
        $scope.data[i].comment=refusalComment;
   $scope.data[i].mail=user;
  }
 console.log(data);
 return data;
}

      </script>

    <div class="container">    
          <div class="form-group">
          <label for="refusalComment" class="control-label">კომენტარი უარზე</label>
          <input type="text"
               class="form-control" 
               cam-variable-type="String"
               cam-variable-name="refusalComment"
               name="კკომენტარი უარზედ"/>
                </div> 
                 <label for="choose" class="control-label">აირჩიე  მომხმარებელი</label>
                <div class="form-group">
                <select cam-variable-name="user" style="width:250px; height:40px;margin-left:3px;margin-top:5px" cam-variable-type="String" ng-model="user" class="ng-valid ng-valid-cam-variable-type ng-pristine">
               <option value="s.sssss@gmail.com">s.sssss@gmail.com</option>
              <option value="m.mmmm@gmail.com">m.mmmm@gmail.come</option>
               </select>
                </div>
                </div>
    </form>