Skip to main content
Version: 10.2.4

Correlated fields

The Correlated fields Answer Type allows you to repeat a block of answer fields, so Workers can dynamically add Answers. This feature is useful when the number of task answers is unknown, for example: "Find all members of the Board of Directors from an annual report".

Repeatable block creation​

To create a repeatable answer block, select the Answer Type > Correlated fields when adding a new Answer.

Add Corellated Answer

Correlated fields options​

Custom parameters are 6|Add more|Stack, where:

  • 6: max block size; you can input any integer value.
  • Add more: the name of the block creation button.
  • Stack: one of three variants (tabs, stack, horizontal) for tabs location.

Default parameters are as follows:

  • Max block size: unlimited
  • Button name: Add
  • Tabs location: Tabs

The worker's answer is processed as a pair of values divided by ::.

Usage​

Used as a parent container for child answer types. Child answers should be non-adjudicated and in common case.

Currently supported child answers include the following:

  • FREE_TEXT
  • LONG_TEXT
  • CHECK_ONE
  • CHECK_MULTI
  • SELECT_ONE
  • SELECT_MULTI
  • NUMBER
  • PRICE
  • DATE
  • TIME
  • PHONE
  • EMAIL
  • MASKED_TEXT
  • SLIDER
  • TEXT_LIMITATION_AREA
  • UPC_CODE
  • SELECT_DATE

For example, you can use the 3|Add|stack values to set the parameters, where:

  • 3: first value, max block size
  • Add: button name
  • Stack: one of the three variants (tabs, stack, horizontal) for tabs location

Default parameters are as follows:

  • Max block size: unlimited
  • Button name: Add
  • Tabs location: Tabs

Default value​

The default value is a JSON object of the following structure:

{"cf":[{"t1":"b","t2":"b"},{"t1":"a","t2":"a"}]}

Where:

  • cf is the correlated_field answer code.
  • t1 is the first sub-answer.
  • t2 is the second sub-answer.
  • a and b are values.

Example​

Below is an example of the default JSON object:

{"cf":[{"t1":"b","t2":"b"},{"t1":"a","t2":"a"}]}

Where:

  • cf is a Correlated Input answer code that should be used in conjunction with CorrelatedMultivalueComparator.

Various tab diplay modes​

You can choose from the three types of tab display:

  • STACK

    Correlated Answer Stack Mode

  • TABS

    Correlated Answer Tabs Mode

  • HORIZONTAL

    Correlated Answer Horizontal Mode

Sub-answers​

Several levels of sub-answers (2, 3) are supported in the Correlated fields Answer Type. The list of available sub-answers contains the following:

  • FREE_TEXT
  • LONG_TEXT
  • CHECK_ONE
  • CHECK_MULTI
  • SELECT_ONE
  • SELECT_MULTI
  • NUMBER
  • PRICE
  • DATE
  • TIME
  • PHONE
  • EMAIL
  • MASKED_TEXT
  • SLIDER
  • TEXT_LIMITATION_AREA
  • UPC_CODE
  • SELECT_DATE