Introduction
Dynamic dropdown population refers to the process of loading data into a dropdown component at runtime, based on certain conditions or user interaction. Namely, it allows you to load dropdown options on demand, rather than preloading a fixed set of options. This approach can be particularly useful when working with large datasets or when the options need to be filtered based on user input. By loading options dynamically, you can improve the performance and responsiveness of your application, while also providing a more seamless user experience.Example of dynamic dropdown population
The following example showcases how to dynamically populate a dropdown component with a list of names. Instead of manually maintaining a static list of names, the dropdown is designed to fetch the names from an external API endpoint:onLoadData event is used, to which the loadData handler is bound.

loadCallback method call - this method allows you to transfer data to dropdown. The
handler code is shown below:
loadData action is triggered, which sends a request to a remote JSON file containing a list
of names. The fetched names are then dynamically displayed in the dropdown, allowing the user to easily select their desired name. The list
can also be filtered to include only names that match the user’s input, and the resulting options are loaded into the dropdown.
By utilizing dynamic dropdown population, the form provides users with a seamless and efficient selection process. It eliminates the need
for manual maintenance of the dropdown options, as the form automatically fetches and updates the data in real-time.
Next steps
- Explore all implementation guides: Guides hub
- Continue with runtime architecture: FormEngine Core
- Add visual form authoring: FormEngine Designer
- Integrate in your stack: Integrations
Official resources
- Runtime package: @react-form-builder/core on npm
- Designer package: @react-form-builder/designer on npm
- Source code and examples: FormEngine GitHub repository
- Commercial Designer plans: Pricing