You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
The Store to Form enhancer allows you to store the AI-generated response into a Joget form. It supports both simple text and structured JSON formats, enabling integration with existing form records or multi-row form tables.
To use the Store to Form Element:
Adding the Store to Form enhancer
- Locate the Store to Form element under the Enhancer Plugin section.
- Drag and drop the File element into the Drop an enhancer here section.

To properly integrate and configure the Beanshell, set the following fields:
Name | Description |
---|
Store to Form | Select the form you want to store the data in. |
Response Content Type | Choose Text for a single field or JSON for structured data. Text | It stores the plain response in the specified field of the given record. 
- Field ID: The field in the form where the text should be stored.
- Record ID: The record to update. If left blank, the current workflow assignment’s process ID will be used.
| JSON | Tries to format the JSON into a standard object. Parses the content and maps it to form rows based on the provided mappings. Supports saving multi-row data if the response is a JSON array. 
- Base JSON Object Name for Multirow Data: The JSON key containing the array of objects (rows) to store in multirow form.
- Primary Key: Field used as the row identifier in multirow storage.
- Field Mapping: Map JSON fields to form field IDs.
|
|