Dataform
In Kissflow apps, dataforms gather and store data, enabling users to submit data into an app.
To begin with, get dataform instance using getDataform
method from app’s interface.
Parameters
Parameters | Type |
---|---|
dataformId | String |
Syntax
Import CSV
Launches the import CSV popup, where you can upload CSV file and map its columns to the corresponding fields.
Parameters
Parameters | Type | Description |
---|---|---|
defaultValues | Object | An object with keys as field Id and its values in respective data types. |
Syntax
Example
Consider a scenario where certain fields are not visible to the user(hidden in form visibilty). In that case, default values can be used to populate data in these hidden fields.
Note
- Default values here is optional.
- Any variables or parameter can also be mapped in
defaultValues
.- If a default value is set by the developer, end users cannot override it.
- Certain fields cannot be set as default, such as auto-calculated fields and sequence numbers.