Pre-populate Form Fields from Request Parameters

Introduction

Pre-populating form fields in Joget can streamline user interactions by automatically filling in data based on request parameters. This is particularly useful when you want to provide a more customized experience or when dealing with data pre-filled from external systems. This article will explore two methods for pre-populating form fields: setting from request parameters and retrieving from request parameters. We will also provide links to relevant resources to help you get started.

How does it work?

There are two primary methods to pre-populate form fields in Joget:

  1. Set from the Request Parameter:

    • You can pre-populate a form field by matching the field ID with a request parameter of the same name. For instance, if your text field has the ID, you can use a request parameter named title to automatically fill in the text field's value.
    • To make a field read-only, use the fk_ prefix (e.g., fk_title). For editable fields, use the fke_ prefix (e.g., fke_title).
  2. Get from Request Parameter:

Related documentation

Created by Julieth Last modified by Aadrian on Dec 13, 2024