Font Size:

Store to Form Enhancer

Introduction

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. 

Get started

How to use it

To use the Store to Form Element:

Adding the Store to Form enhancer

  1. Locate the Store to Form element under the Enhancers section of the palette.
  2. Drag and drop the element into the Drop an enhancer to here section.

Configure Form Properties

To properly integrate and configure the Beanshell, set the following fields:

  • 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.
        • Field Name: Form field ID.
        • JSON Object Name: JSON property name.

 

Created by Gabriel Last modified by Gabriel on Jun 24, 2025