new SinglePageForm()
Enables the user to build linear form, on one page.
- Implements:
- Source:
Methods
checkbox(label, id, mandatory, values) → {FormPageContent}
Create a multiple choice checkbox entry with the given values.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
values |
Array.<String> | An array of values to set. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
datepicker(label, id, mandatory) → {FormPageContent}
Create a selector for date.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
label(label) → {FormPageContent}
Create a new unlinked label on the form.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
numberfield(label, id, mandatory) → {FormPageContent}
Create a new textfield specifically asking for a digits.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
picture(label, id, mandatory) → {FormPageContent}
Ask to capture a picture.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
radiobutton(label, id, mandatory, values) → {FormPageContent}
Create a single choice checkbox entry with the given values.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
values |
Array.<String> | An array of values to set. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
section(sectionTitle) → {FormPageContent}
Create a new section for the form,
with the given name.
Parameters:
Name | Type | Description |
---|---|---|
sectionTitle |
string | Name of the section. |
- Implements:
- Source:
Returns:
The current page.
- Type
- FormPageContent
sound(label, id, mandatory, duration) → {FormPageContent}
Ask to record a sound.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
duration |
string | Time period to capture. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
textarea(label, id, mandatory) → {FormPageContent}
Create a new textfield with answer on multiple lines.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
textfield(label, id, mandatory) → {FormPageContent}
Create a new textfield with answer on a unique line.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent
video(label, id, mandatory, duration) → {FormPageContent}
Ask to capture a video.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label linked to this entry. |
id |
string | The identifier to link with the value in results. |
mandatory |
boolean | true if an answer is required. |
duration |
string | Time period to capture. |
- Implements:
- Source:
Returns:
The current form page.
- Type
- FormPageContent