Skip to content

Releases: akvo/akvo-react-form-editor

Semarapura v1.1.1

03 Nov 06:10
Compare
Choose a tag to compare

Setting Hint URL

Setting Hint URL should be defined as array of object. This value was used to fill Select Option value for hint setting in a question.

Example:

<WebformEditor
  settingHintURL={{
    questionTypes: ['number'],
    settings: [
      {
        id: 1,
        name: 'JMP Explorer API',
        endpoint: 'https://jmp-explorer.akvotest.org/api/hint',
        path: [
          {
            label: 'Maximum',
            value: 'max',
          },
          {
            label: 'Minimum',
            value: 'min',
          },
          {
            label: 'Average',
            value: 'mean',
          },
          {
            label: 'Quantile 1',
            value: 'q1',
          },
          {
            label: 'Quantile 2',
            value: 'q2',
          },
          {
            label: 'Quantile 3',
            value: 'q3',
          },
        ],
      },
    ],
  }}
/>

Setting Hint URL Object

Props Description Type
questionTypes Value to limit hint setting for a certain question Array[QuestionType] | undefined
settings Value for hint options Array[Settings Parameters]

Settings Parameters

Props Description Type
id Unique id as option value Integer
name Shown as option label String
endpoint Hint API String
path Hint of object path provided by API which containt the value will be shown as a hint/validation Array[Path Parameters]

Path Parameters

Props Description Type
label Label for the path options String
value Value for the path options String

Gianyar v1.1.0

21 Oct 08:21
Compare
Choose a tag to compare
  • Support set question meta to be used as data point name

Denpasar v1.0.9

18 Oct 08:16
Compare
Choose a tag to compare

v1.0.8 Denpasar

18 Oct 03:03
Compare
Choose a tag to compare

Support Table type of question

Denpasar v1.0.7

10 Oct 05:57
Compare
Choose a tag to compare

Custom Params

Custom parameters are key-value pairs that we can implement in the Webform Editor.

<WebformEditor
  customParams={{
    label: 'Set Custom Parameter',
    params: [
      {
        name: 'params_name_a',
        label: 'Single Option Param',
        type: 'option',
        multiple: false,
        options: [
          { label: 'Option 1', value: 'SO1' },
          { label: 'Option 2', value: 'SO2' },
        ],
      },
      {
        name: 'params_name_b',
        label: 'Multiple Option Param',
        type: 'option',
        multiple: true,
        options: [
          { label: 'Multiple Option 1', value: 'MO1' },
          { label: 'Multiple Option 2', value: 'MO2' },
        ],
      },
      {
        name: 'params_name_c',
        label: 'Input Param',
        type: 'input',
      },
    ],
  }}
/>

Custom Parameters Setting

Props Description Type
label Label for the custom params tab String | undefined
params List of custom parameters Array[Custom Parameters]

Custom Parameters

Props Description Type
name Parameter name String
label Parameter label String | undefined
type Field Type `option
multiple Whether multiple or not Boolean
options Parameter Options Array[Option Parameters] | undefined

Option Parameters

Props Description Type
label Label for the params options String | undefined
value Value for the params options String

Semarapura v1.0.6

30 Sep 03:58
Compare
Choose a tag to compare
  • Fix load after/before date initial value

Semarapura v1.0.5

30 Sep 03:26
Compare
Choose a tag to compare
  • Clear rule value when deselect after/before date

Semarapura v1.0.4

29 Sep 07:37
Compare
Choose a tag to compare
  • Fix cascade & form description bug

Gianyar v1.0.3

21 Sep 06:31
Compare
Choose a tag to compare
  • Update akvo-react-form version

Gianyar v1.0.2

19 Sep 06:13
Compare
Choose a tag to compare
  • Release