Abuja Digital Studio · Est. 2018
Start a Project
DocsOFormsField types and conditional logic
Reference

Field types and conditional logic

OFormsorravo.com/docs/oforms/fields-and-conditions

Field types and conditional logic

Standard field types

TypeKey config
textlabel, placeholder, required, max_length
emaillabel, required, confirmation (show confirm field)
phonelabel, required, format (any/intl/us)
numberlabel, required, min, max, step
datelabel, required, min_date, max_date
timelabel, required, format (12h/24h)
textarealabel, rows, max_length
selectlabel, required, choices, multiple, allow_other
radiolabel, required, choices
checkboxlabel, choices, required_count
togglelabel, on_label, off_label, default
filelabel, accept (mime types), max_size_mb, max_files
hiddenname, value (supports merge tags)
htmlcontent (static HTML block)
section_breaktitle, description
page_breaknext_label, back_label (multi-step pagination)
honeypotnone (invisible CAPTCHA, auto-inserted)

Common keys on every field: id (auto-generated), type, label, name, required, placeholder, css_class, conditions.

Conditional logic

Every field accepts a conditions rule that shows or hides it based on other fields' values.

json{
  "action": "show",
  "match": "all",
  "rules": [
    { "field": "field_abc", "operator": "is", "value": "Yes" },
    { "field": "field_xyz", "operator": "is_not_empty" }
  ]
}
OperatorEffect
isEquals
is_notDoes not equal
containsValue contains string
not_containsValue does not contain string
greater_thanNumeric >
less_thanNumeric <
is_emptyNo value
is_not_emptyHas any value

action is show or hide. match is all (AND) or any (OR).

Logic is evaluated client-side in real time, then re-evaluated server-side on submit so hidden fields cannot be force-submitted by bypassing JavaScript.

Field types and conditional logic · OForms Docs | Orravo