Dynamic number of form inputs
Comments
-
How do I set a form up so that the number of input fields is dynamic, based on an initial multiselect input box? Users will first select which sections they want to include in a report using a multi-select dropdown box. Then, for each section, they can choose one or more components to be included in that section. So for example if they choose 2 sections, then I need two additional multiselect dropdown boxes, one for each section. If they choose 4 sections, then I need four more multiselect boxes to appear. The number of sections could in theory be infinite, but in reality most reports will have no more than 5 or 6 sections. I could hard code 6 multiselect boxes that appear as needed, but if someone ever chose more than that I would be out of luck. Any ideas? Is there a way to just keep spawning new inputs on a dynamic basis?
-
Hello Ross,
If we are looking to use the same form and add to dynamically create new input fields, we may need to create a Mixed Data Repeater may be useful for what is being described. Using a mixed data repeater we can dynamically create new input components that can be added to the form. We can customize a select group of elements to be displayed when an event button on the form is clicked on.
I have attached a sample project as well as added a link to our documentation site that can serve as a guide on setting up a mixed data repeater.
-
Thanks, that could work. I think I found another way to accept input to avoid that need, which keeps things a bit simpler anyway. Appreciate the help!.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 112 Rules
- 282 Administration
- 216 Portal
- 501 General Q & A
- 719 Forms
- 353 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 189 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 71 Repository
- 233 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions