[Forminator Pro] Dynamic selection fields

Hello,

is it possible to create dynamic fields in Forminator Pro? I have two dropdown fields:
1. organization name
2. project name

When a user selects an organization, the second dropdown field should only show certain projects that belong to this organization.

Thank you and kind regards
Anil

  • Patrick Freitas
    • FLS

    Hi Anil

    Hope you are doing well.

    You can use Forminator visibility.

    Unfortunately, we can’t only filter some certain of option on a dropdown box for example.

    But you can create multiple dropdown boxes for the project name and show that specific dropdown filed depending on the organization name.

    Edit the Dropdown field > Visibility:

    [attachments are only viewable by logged-in members]

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas

  • Anil
    • Site Builder, Child of Zeus

    Hello Patrick,

    thank you very much for your answer. That was the first solution I thought of, too. The only problem is, that I would have several columns (e.g. Projects 1, Projects 2, Projects 3, …:wink: when exporting CSV, right?

    Would there be a way to solve the problem with a code? For example with custom fields, where the projects are registered. The dropdown menu for projects then pulls the data from this custom fields, depending on which organization is selected.

    Best regards
    Anil

  • Patrick Freitas
    • FLS

    Hi Anil

    Hope you are doing well.

    This is how the CSV will look.

    [attachments are only viewable by logged-in members]

    I created one Organization field and two different Project Dropdown and switched the dropdown depending of the selected organization.

    I also pinged the developers to check if we have plans to add the conditional for the Select options.

    Best Regards
    Patrick Freitas

  • Patrick Freitas
    • FLS

    Hi Julian

    Thank you for the suggestion.

    I checked that add-on link, and it seems that most of the option we already have implemented on Forminator.

    Visibility
    Determines who is able to see the field.

    This option sounds a good option but would be used only for logged in users once this is how we could manage the user roles to select or not that field, or maybe a logged in/ logged out conditional?

    Allow field to be populated dynamically
    This option allows you to dynamically populate the field based on another field or URL query strings.

    On the Field > Query Parameter, you can add a custom query parameter that will be passed on the URL.

    Enable Conditional Logic
    Enables conditional logic on the field to show or hide the field based on defined conditions.

    You can define on Field > Visibility when you would like to show or hide the field, but this will show/hide the entire field not some specific dropdown option, checking the add-on documentation seems it is the same behaviour.

    We also already have a task for Duplicate or not when using two select fields.

    For example, if Field 1 has selected the option A, the field two won’t allow the A to be selected.

    You can follow our roadmap on:
    https://wpmudev.com/roadmap/#forminator

    In case you would like to have a different feature, feel free to open a feature request.
    https://wpmudev.com/hub/support/

    Best Regards
    Patrick Freitas