Spreadsheet Form Element allow users to perform many actions in an excel-like environment, depending on the use cases. A few examples of uses of spreadsheets are:- Database editing
- Configuration controlling
- Data merging
- Workforce planning
- Sales reporting
- Financial analysis
|
This is a new feature in Joget Workflow v6. |

Figure 1 : Sample Spreadsheet Form Element in the Userview

Figure 2 : Spreadsheet Form Element Properties
Name | Description |
---|
Spreadsheet | Element ID of the form element. |
Label | Spreadsheet label/title. |
Columns | The spreadsheet column(s) is defined here. Sub-element | Description |
---|
Value | Field ID of the column. | Label | Column header title/label. | Format Type | Defines the type of input to store. Default format type is Text. Available Data Types: - Text - format the value as text
- Numeric - accepts a numeric value (See Format documentation)
- Date - accepts a date type value
- Time - accepts a time type value
- Checkbox - appears as a checkbox to check
- Dropdown - appears as a dropdown menu to select options
- Autocomplete - autocompletes any known phrases
- Password - obscures any alphanumerical value into a password
- File - Accept file upload and render a file download link
- Image - Accept image file upload and render a thumbnail
- URL - Convert value to an URL
- Hidden - Hidden column for storing formular value
- Custom - Use custom setting to configure the column
| Format | Defines the format to show data on the spreadsheet based on the chosen format type. - Numeric - Key in format accepted by numbrojs library.
- Date - Key in format accepted by moment.js library. (Default value: DD/MM/YYYY)
- Time - Key in format accepted by moment.js library.(Default value: h:mm:ss a)
- Dropdown - Key in Form ID that contains the equivalent dropdown element.
- Autocomplete - See handsontable for samples.
- File - Key in Form Def ID that contains File Upload form element.
- Image - Key in Form Def ID that contains Image Upload form element.
- URL - Provide an URL syntax. Example: http://www.joget.org?id={id}&name={name}
- Hidden - Key in default value to be saved.
- Custom - See handsontable for samples. Please put the setting json in {{ and }}. Example: {{"editor":"text"}}
Please note that any string within {{ and }} will be treat as setting json and used to configure the column. | Regex Validation | Validates input value to match the defined Regular Expression pattern. | Formula | Defines a formula to perform processing. Example: sales + profit-loss 
|
| Readonly | Defines if the column is editable. |
|

Figure 3 : Spreadsheet Form Element Properties - UI
Name | Description |
---|
Enable Header Sorting? | Determines if users can sort spreadsheet data by column in ascending or descending order. |
Data Order Field ID | Field to keep the ordering sequence. Must correspond with a field id in the target form. |
Readonly | Defines if the entire spreadsheet is editable. |
Disable Add Feature | Determines if a new row can be added. |
Disable Delete Feature | Determines if a row can be removed. |
Show Row Numbering? | Show additional column on the leftmost to denote numbering. Row numbering checked. 
|
|
Number of columns to fixed on left | Allows to specify the number of fixed (or frozen) columns on the left of the table. Default Value: 0 |
Number of spare rows | Number of spare row to be added automatically after lines with values. 1 spare row 
|
|
Custom Settings (JSON) | - |

Figure 4 : Spreadsheet Form Element Properties - Validation & Data Binder
Name | Description |
---|
Validator | Attach a Validator plugin to validate the input value. Validation will takes place whenever form is submitted except when it is submitted as "Save as Draft". |
|
Min Number of Row Validation (Integer) | Defines the minimum number of rows required for input. |
Max Number of Row Validation (Integer) | Defines the maximum number of rows possible for input. |
Error Message | Error message to be shown when row requirements set above is not met. |
Load Binder | Option by default. Grid data will be saved/loaded in JSON format in its defined database cell. |
Store Binder | Option by default. Grid data will be saved/loaded in JSON format in its defined database cell. |