Plugin Template - Form Options Binder

Introduction

The Plugin Template - Form Options Binder allows you to dynamically populate form select box options based on predefined data from another form, such as a list of countries. This enhances efficiency by automating the population of select options across multiple forms in a Joget application.

Get started

Where to get the plugin

You can download the Plugin Template Pack from the JogetOSS GitHub repository.

How to install

  1. Click Download on this plugin screen (It will be a .jar file).
  2. Go to your Joget localhost or server. In the Joget Console, go to Admin Bar > Systems Settings > Manage Plugins and click the Upload Plugins button.
  3. Under Upload Plugin, select the plugin .jar file you downloaded and click Upload.
  4. Depending on the plugin type, you can now view your new plugin in your form, List, or UI Builder.
  5. Remember to uninstall the old plugin before uploading a new version.
  6. The Joget Knowledge Base has more information on managing and developing plugins.

How to use it

  1. Create a new form called Country Categories. This form will populate the select box options for countries in other forms.
  2. Drag a text field into the form, label it as Country, and make it a mandatory field.
  3. Save the form and click Generate App to create a CRUD for the form.
  4. Launch the userview, go to Manage Country Categories, and create a few country records.
  5. Go to the Plugin Template Management Page and click on the New button to create a new Plugin Template.
  6. Fill in the Plugin Template Management Page. For the Plugin field, choose one of the formatters under Form Options Data Store. In this demo, the Form Data is selected.
  7. Click the Configure Plugin button and set up the Form Data. Select the Country Categories form as the source, choose the correct form field to represent the label for each option, and click Submit to save the configuration.
  8. Click the Save button to store the newly configured Plugin Template.
  9. Enter the Design View of the Plugin Template Form and click on the edit icon of the Country select box to edit its properties.
  10. In the Edit Select Box menu, select Plugin Template - Options Binder for the Or Choose Options Binder property.
  11. In the Or Choose Options Binder (Plugin Template - Options Binder) section, select the template created earlier and click OK.
  12. Save the form and preview it to verify that the select box is correctly populated with country options.

Expected outcome

After configuring the Plugin Template - Form Options Binder, the form select box will be dynamically populated with the data from the Country Categories form. This allows you to reuse the template across multiple forms, ensuring consistency and reducing manual work.

Download plugin

Created by Julieth Last modified by Aadrian on Nov 19, 2024