title: Submit a CRT form: name: submit-crt classes: form fields:
# Basic model identity
model:
label: Model
type: text
validate:
required: true
manufacturer:
label: Manufacturer
type: select
classes: taxonomy-suggest
multiple: false
validate.required: true
# Options will be fetched via AJAX from the plugin endpoint (/submit-taxonomy.json?type=manufacturer)
# The JS below (in the plugin) transforms this to a selectize/autocomplete fed by endpoint.
year:
label: Year (YYYY)
type: number
validate:
min: 1900
max: 2100
# Example taxonomy multi-selects
series:
label: Series
type: select
classes: taxonomy-suggest
multiple: true
application:
label: Application
type: select
classes: taxonomy-suggest
multiple: true
size_inches:
label: Screen Size (inches)
type: number
validate:
min: 1
max: 100
region:
label: Region
type: select
classes: taxonomy-suggest
multiple: true
# Free text specs
specs:
label: Notable Specs (free text)
type: textarea
# Image uploads
images:
label: Photos
type: file
multiple: true
destination: 'user://data/crt-submissions/tmp' # plugin will relocate into per-UUID folder
accept:
- image/* # whitelist
avoid_overwriting: true
limit: 20
filesize: 10 # MB per file
# Contact (optional)
submitter_email:
label: Your Email (optional, for follow-up)
type: email
validate:
required: false
# Anti-spam
honeypot:
label: Leave this empty
type: honeypot
captcha:
label: CAPTCHA
type: captcha
buttons:
type: submit value: Submit
process: