Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Populate one multi select field from another multi select field in same form

anuprita_moharil March 17, 2023

Hi,

Happy Friday!!

First multi select dropdown(A) displays up to 15 values and based on selection, I need to display values in second multi select dropdown(B). Both the dropdowns are in the same form. There is no DB data involved. The field B can have up to 50 values that need to be filtered based on selection from A. Please advise if multi select dropdown is correct choice for field B and also how to apply filter on 50 values based on selection in field A. Thanks.

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
March 17, 2023

Hi @anuprita_moharil and welcome to this community

Is this a question about the functionality of some kind of a plugin? Sounds like ours - ConfiForms... but may be I am wrong

Alex

anuprita_moharil March 17, 2023

Hello Alex, 

 

Thank you for quick response. I need to implement this in ConfiForms. I am not sure if any plugin is needed. I need a way to let users select multiple choices from field B based on what they selected in field A. Field A is also populated from something user chose before. I was thinking of adding JavaScript but that may be complicated given the purpose of the form is to let users submit their selected choices(no validation needed).

A different approach would be to let user refer available choices in read only page and let them upload an excel with their choices.

Hope this answers your question. Please let me know if you need more details.

Alex Medved _ConfiForms_
Community Champion
March 17, 2023

OK, so it is about our app, ConfiForms

You can have dependent dropdowns or any other choice based fields - see this page https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Field+Definition+Rules#ConfiFormsFieldDefinitionRules-ApplyFilteronafield

anuprita_moharil March 17, 2023

Thank you for your response. This approach doesn't work when you have more than two options to decide the filter. 

For Ex:

Field A : Option 1, Option 2

Field B(Multi select): We have to code for three scenarios to apply filter to values

Option1:true & Option 2:true --> Show all values(up to 15)

Option1:true & Option 2:false --> Show values for Option 1

Option1:false & Option 2:true --> Show values Option 2

I have Field C that need to display values based on selected options in Field B. Can you suggest an approach to address this situation instead of coding for combination of 15 values?

Alex Medved _ConfiForms_
Community Champion
March 17, 2023

This works for any number of options. 

In your case (I suspect the Field A is also a multi-select)

Option1:true AND Option2:true Apply filter *

Option1:true AND Option2:false Apply filter that shows values for Option 1

 

The question is, how do you know/define the values that you want to show for Option 1 in Field B

 

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events