Skip to content

Prefill Inputs

Overview

The Prefill Inputs plugin allows users to prefill input fields within the form based on custom properties. This feature provides an easy way to automatically populate input fields, reducing manual data entry and enhancing the user experience.

Usage

To use the Prefill Inputs plugin, follow these steps:

  1. Define Custom Properties:
  2. In the screen's custom properties, add a custom key prefill_inputs with the value true.
  3. Add custom properties with keys starting with input_ followed by the input index (e.g., input_0, input_1). Set the value of these properties to the data you want to prefill in the inputs.

Benefits

  • Streamlines Data Entry: Automatically fills input fields, saving time and reducing manual effort.
  • Improves Accuracy: Minimizes errors by pre-populating fields with predefined values.
  • Enhances User Experience: Provides a seamless and efficient form-filling experience.

By following these steps, you can effectively integrate and utilize the Prefill Inputs plugin to enhance the functionality and usability of your forms.

Example

For instance, if you want to prefill the first input field with the value "John Doe", you would:

  1. Add the custom property prefill_inputs with the value true to the screen.
  2. Add a custom property input_0 with the value "John Doe".

This configuration will automatically prefill the specified input field with the provided value when the form is loaded.