Seeking Help with Dynamic Multi-Select Dropdowns and Conditional Visibility

Actions & Logic

I'm building an insurance underwriting form in FlutterFlow that requires dynamic multi-select dropdowns with conditional visibility. The form should allow users to select multiple health categories, which in turn should display corresponding conditions. Based on the conditions selected, the form should present follow-up questions. Each step influences the next, with multiple selections at each level.

Current Collection Structure:

  1. HealthCategories Collection

    • Stores different health categories (e.g., High Blood Pressure, Diabetes).

  2. Conditions Collection

    • Stores conditions associated with each health category.

  3. FollowUpQuestions Collection

    • Stores follow-up questions for each condition.

  4. InsuranceRatings Collection

    • Stores insurance ratings based on the follow-up answers.

What have you tried so far?

What I Have Tried So Far:

  • Multi-Select CheckboxGroup for Health Categories:

    • Successfully implemented a multi-select CheckboxGroup for health categories.

  • Dynamic Dropdowns for Conditions:

    • Added a ListView to dynamically create dropdowns for each selected health condition.

    • Faced issues with dynamically displaying dropdowns based on multiple selections.

  • Conditional Visibility Challenges:

    • Conditional visibility doesn't work well with multi-select options.

    • Unable to create multiple dropdowns for selected conditions due to the limitations of multi-select handling.

Complications:

  1. Multi-Select Limitations:

    • FlutterFlow's multi-select functionality doesn't support conditional visibility for each selected item.

  2. Dynamic Dropdown Creation:

    • Struggling to dynamically create multiple dropdowns based on the selections in the previous step.

  3. Displaying Follow-Up Questions:

    • Need a way to handle and display follow-up questions for each selected condition dynamically.

What I Need Help With:

  1. Handling Multi-Select and Conditional Visibility:

    • How can I manage conditional visibility when using multi-select to create dependent dropdowns?

  2. Creating Dynamic Dropdowns:

    • Advice on dynamically creating dropdowns based on multiple selections in previous dropdowns.

  3. General Best Practices:

    • Any suggestions on structuring the form or database collections to better handle these requirements.

Thank you in advance for your assistance!

Did you check FlutterFlow's Documentation for this topic?
Yes