XForms Manual
  • XForms
  • Form Template
  • Form Controls
    • General
    • Date Control (dat)
    • Expression (exp)
    • Images Control (img)
    • Lookup (lkp)
    • Multi-Choice (mch)
    • Number (num)
    • Signature Control (sig)
    • Table Control (tbl)
    • Text Control (txt)
    • Time Control (tim)
  • PDF Template
  • Reference Lists
  • Webhooks
Powered by GitBook
On this page
  1. Form Controls

General

General Form Controls Settings

Setting
Description
Value

type

Type of the form control

"img" for image "txt" for Text "dat" for Date ...

readonly

Set the field to read-only or editable (optional)

true/false

required

Set if a value must be provided to submit the form (optional) Cannot be used with "requiredWhen" setting.

true/false

requiredWhen

Set if a value is required to submit, if the condition is met (optional) Cannot be used with "required" setting.

a 3-part conditional statement in form of "field_id~operator~value" See the notes below for details.

fullWidth

control takes the whole line

true / false

Notes

"requiredWhen" setting is a 2 or 3-part statement in following format:

"field_id~operator" or "field_id~operator~value"

  • field_id: ID of the field to compare with

  • value: the value to compare the field (above) with. This could be a single number or string, or a list of values (optional)

  • operator: one of the following operators

    • checked : checks if the checkbox with specified ID is checked.

    • unchecked : checks if the checkbox with specified ID is unchecked.

    • = : checks if the value of the field is equal to one of the items in the value list example: cityField~=~'Boston','Chicago' the current field is required, if cityField is one of the cities in the list.

    • <> :

    • < :

    • > :

    • >= :

    • <= :

PreviousForm ControlsNextDate Control (dat)

Last updated 8 months ago