2015-04-01 58 views

回答

1

的解決方案是之前添加:在Autoform.hooks與插入鉤:功能在它,這將修改文檔條目(這個工作參數必須在模式中定義)。例如:

AutoForm.hooks({ 
    'add-form': { 
     before:{ 
      insert:function(doc){ 
       doc.fileId = '1234; // doc is the data from the form. 
       return doc; // .fileId is the element we try to modify 
      } 
     } 
    } 
}); 
+0

提到架構的額外功勞需要該字段。這就是我被封鎖的原因。 – IanBussieres 2015-06-19 00:52:05