QR Code Generation Script
Copy the free Airtable script to generate QR codes directly in your base. Simple, fast, and ready to use — no paid tools required.
Copy the script below and paste it into your Run Script step in Airtable.
let inputConfig = input.config();
let recordId = inputConfig.recordId;
let qrValue = encodeURIComponent(inputConfig.qrValue);
let qrImageUrl = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${qrValue}`;
let table = base.getTable("Products"); // <-- replace with your table name
await table.updateRecordAsync(recordId, {
"QR Code Image": [{ url: qrImageUrl, filename: `${qrValue}.png` }]
});
Make sure to replace "Products" with the name of your table, and adjust the field names to match your base.