Dataform
In Kissflow apps, dataforms gather and store data, enabling users to submit data into an app.
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 columns to the corresponding fields.
Parameters
Parameters | type | Description |
---|---|---|
defaultValues | Object | Object with keys as field Id and its values in respective data types |
Syntax
Example
Consider 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
.- End user can’t pass this value if default value is set by dev.
- Some fields cannot be set as default eg. Auto calculated fields, Sequence numbers etc.