From QAParserSettings.yaml (onform/QAParserSettings.schema
)
---
fields:
- regex: "^NRIC$"
key: nric
case_sensitive: true
---
fields:
- regex: hello
parse_error: ignore
---
fields:
- regex: hello
default: hello
---
fields:
- regex: hello
type: number
default: true
---
fields:
- regex: attachments
type: file
---
fields:
- regex: birthday
type: datetime
---
fields:
- regex: hello
default: [hello, world]
---
fields:
- regex: language
type: string
normalize_to_choices:
- regex: "english|ingris"
choice: en
- regex: "mandarin|中文"
choice: zh
---
fields:
- regex: date
datetime_format: "%b %d, %Y"
default_time: "09:00"
timezone: Asia/Singapore
- regex: time
time_format: "%H:%M"
timezone: Asia/Singapore