ฉันใช้ meteor-autoform
เพื่อแทรกเอกสารในคอลเลกชัน Items
ของฉันมีฟิลด์ groupId
ฉันจะแทรกรหัสกลุ่มนี้ได้อย่างไรเมื่อฉันส่งแบบฟอร์มรายการสินค้า
<template name="itemForm">
{{#autoForm type="insert" collection=Collections.Items}}
{{> afQuickField name="name"}}
<div class="form-group">
<button type="submit" class="btn btn-primary">Add item</button>
<button type="reset" class="btn btn-default">Reset Form</button>
</div>
{{/autoForm}}
</template>
ฉันสามารถสร้างฟิลด์อื่นที่มีรหัสกลุ่มของฉันได้ แต่ฉันไม่ต้องการให้ผู้ใช้เห็นฟิลด์นี้
ฉันจะตั้งค่า groupId
"เบื้องหลัง" ได้อย่างไร
autoform: {omit: true}
เพื่อซ่อนฟิลด์ในแบบฟอร์มได้ - person Mustafa   schedule 28.03.2015