Properly Display Repeater Query Options in Forms

This PHP snippet ensures that options generated from a Repeater Query in JetFormBuilder (for Checkbox or Radio fields) are displayed correctly. It assigns a unique object ID to each option and maps it back to the correct repeater item, allowing for proper dynamic data binding in forms.

Specifications
Properly Display Repeater Query Options in Forms
6 January, 2026
  • Plugin
    • JetEngine
    • JetFormBuilder
  • Category
    • Dynamic Content
    • Forms
  • Programming languages
    • PHP
Source code

Installing Instruction

How to Add Snippets into the functions.php File of the Active Child Theme

Attention: Create a site backup before applying any changes to functions.php.

This ensures that you can restore the website if something goes wrong after adding the code snippet.

  1. Copy the required code snippet to your clipboard.
  2. Navigate to WordPress Dashboard > Appearance > Theme File Editor.
  3. Click the functions.php tab to open the file.
  4. Paste the code snippet below the existing code in the Selected file content: area.
  5. Click the "Update File" page.

Example Use Case

Use this snippet to ensure options generated from a JetEngine repeater query display correctly in JetFormBuilder Checkbox or Radio fields. It assigns unique object IDs and maps options properly.
Applicable scenarios:

  • Dynamic forms: Use repeater-based option lists reliably in JetFormBuilder forms.
  • Custom content entry: Display nested or complex repeater data as form options.
  • Advanced user input: Support dynamic, data-driven form elements binding to JetEngine data.
Specifications
Properly Display Repeater Query Options in Forms
6 January, 2026
  • Plugin
    • JetEngine
    • JetFormBuilder
  • Category
    • Dynamic Content
    • Forms
  • Programming languages
    • PHP
Source code

Let’s build together

Have your own solution?

Came up with a great solution and want to show it to the Crocoblock community?

Request a new feature

Leave a feature request through GitHub, and our developers will consider it