How to use URL Request Parameters for Popup Form

Introduction

The "URL Request Parameters for the Popup Form" is a feature for Form Grid. It will pass the selected field ID as URL request parameters to the popup form which is the configured form grid target form that will pop up upon adding or editing a row in the form grid. In this article, we will demonstrate 1 example of using this feature. 

How does it work?

Step 1

Create 4 forms and generate CRUD for each of them after creation and configuration.

Item Form - 2 text fields

Label
ID
Item ID itemID
Item Name itemName
 

Dummy Data - 2 text fields

Label
ID
Item ID itemID
Dummy Name dummyName

 

Parent form - 1 select box & 1 form grid

  • Select box settings



  • Form Grid Settings



Child Form - 1 hidden field & 1 text field & 1 select box

  • Hidden Field Setting
  • Text Field Setting

  • Select Box Setting





Step 2

Populate some data into the Item and Dummy forms. 

The inputted data (Item and Dummy CRUD) must have matching Item IDs.

Expected outcome

Properties

Fields to configure:

  • Parameter: Map values as the URL parameters.
  • Field Id: Field ID of the form element in the current form.
  • Default Value: Default Value when there's no existing value found/selected.

    A hash variable is accepted here. For example, you may key the following

    #currentUser.firstName# #currentUser.lastName#
    to pre-populate the field with the currently logged-in user's name.

Download sample app

Download the demo app for How to use URL Request Parameters for Popup Form:
Created by Julieth Last modified by Aadrian on Dec 13, 2024