ROOM64 / KNOWLEDGE / NOCODB

Fields: Miscellaneous

Additional field types for attachments, checkboxes, ratings, and structured data.

อ่านต้นฉบับที่ NocoDB Official Docs ↗
เอกสารอ้างอิงภาษาอังกฤษเนื้อหาจากเอกสาร NocoDB คงรายละเอียดและโค้ดตามต้นฉบับ · ต้นฉบับอัปเดต 2026-08-17 ชื่อเมนูและฟีเจอร์ที่ใช้ได้ขึ้นอยู่กับเวอร์ชันและรุ่นที่ทีมใช้งาน

Workflows · ระบบอัตโนมัติและ Scripts · Fields: Miscellaneous

← Generic Examples

สารบัญในหน้านี้

Additional field types for attachments, checkboxes, ratings, and structured data.

This script demonstrates how to create & work with following fields in NocoDB Attachment Checkbox Rating JSON Geometry

Detailed descriptions of each field type & associated configuration options are available in the NocoDB meta API documentation .

// NocoDB Script: Create Miscellaneous Fields

const tableName = 'Misc Fields Demo';
let table = base.getTable(tableName);

if (!table) {
  table = await base.createTableAsync(tableName, []);
  output.text(`✅ Created table: "${tableName}"`);
}

async function createField(name, config) {
  if (!table.getField(name)) {
    await table.createFieldAsync({ name, ...config });
    output.text(`✅ Created: ${name}`);
  }
}

// Attachment Field
//
await createField('Attachment', { type: "Attachment" });

// Checkbox Field
//
await createField('Is Published', {
  type: "Checkbox",
  options: { icon: "square" }
});

// Rating Field
//
await createField('Priority', {
  type: "Rating",
  options: { icon: 'star', max_value: 5, color: '#F4B400' }
});

// JSON Field
//
await createField('Extra Info', { type: "JSON" });

// Geometry Field
//
await createField('Geometry Data', { type: "Geometry" });

output.table(table.fields.map(f => ({ 'Field Name': f.name, 'Type': f.type })));
output.text(`ℹ️ Total fields created: ${table.fields.length}`);

เนื้อหาเอกสารอ้างอิงและภาพประกอบมาจาก NocoDB Official Docs · บทความแนะนำภาษาไทยเรียบเรียงโดย Room64 · เว็บไซต์นี้เป็นคู่มือประกอบการใช้งานโดย Room64 · เอกสารทางการ ↗

มีงานที่อยากให้ Software, AI หรือ Automation ช่วยอยู่ไหม?

เล่า workflow หรือปัญหาที่ทีมกำลังเจอ เราช่วยดูได้ว่าควรใช้ระบบสำเร็จรูป เชื่อมเครื่องมือเดิม หรือพัฒนาเพิ่มเฉพาะส่วนไหน

คุยกับเราทาง LINEhello@room64.net