Dropdown filtering based on CheckBox group

Andrzej January 23, 2025

Hello!

 

I have to apply  auto filter on the dropdown field bsaed on the checkbox group.

For example when a person mark Java and Python in the next field only those two field should appear. I found similar topic but I don't know how the condition in "Filter to apply on a field" should look like.

 

Przechwyt12121ywanie.PNG

 

Przechwyty112wanie.PNG

2 answers

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

What field type is the field "Jezyk Glowny"? A multi-select?

Andrzej January 27, 2025

"Jezyk Glowny" is a dropdown. The idea is to select one of the languages selected earlier in the checkbox field

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

What should happen when you select multiple in the checkbox group field?

Andrzej January 27, 2025

In the dropdown should appear a list with all checked fields in the checkbox. But I should chose only one option (that's why dropdown "Jezyk Glowny")

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

 

id:[entry.Jezyki.transform(id).join( OR id:)]

 

Like Andrzej likes this
Andrzej January 27, 2025

It's working. Thank you!!

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

Yes, it is a filtering expression

The condition of "Jezyki:true" - what is it? What is should do? Jezyki is a checkbox group, why do you check it to be with value "true"?

Andrzej January 28, 2025

Can I filter similar way the related dropdown?

Let's say I have one dropdown with MPK and second with combined user+MPK. And I want to narrow output of the second field to the MPK choosen ealier. The condition would be similar? The fields are Database dropdown advance

id:[entry.Jezyki.transform(id).join( OR id:)]

This on the other hand is working but retrives only one person, while there might be many more so I need to render a list. 

 

id:[entry.ZrodloLimitu]

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

Should not you filter the second dropdown by "MPK"? not by ID...

What is the SQL you have for the second dropdown? Do you select the "MPK" in the query?

Andrzej January 28, 2025

.

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

I think I have helped you with the very same on a different question you have asked...

Do you want to filter by the ManagerID?

Andrzej January 28, 2025

yes, you're right but I switched to another form as I'm working on a few of them right now. The solution didn't work previously, so I left it. The case is similar I think as in the topic for checkbox.. and the solution for checkbox worked

 

I need to filter based on MPK. The output of 'WybierzWakat' (which is Name + MPK) should be narrow to the MPK choosen in 'ZrodloLimitu'

 

 

 

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

I still dont get it - what FIELD in the SQL query is MPK?

Andrzej January 28, 2025

MPK = [Employee MPK]

 

for the first filed it's ID as well as output of the field for the sceond field it is placed as a description e.g. Name + MPK (combined)

Andrzej January 28, 2025

Is it clear now for you? 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

No, sorry

Give me the example of what selects the first query and what selects the second and how the second should be filtered out

 

Andrzej January 28, 2025

It should be like this but with the list of all people with the chosen MPK (right now it's filtering only one which is incorrect)

 

 

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

Give me the EXAMPLES

2 tables that show the subset of data with column names for EACH dropdown and show how the second dropdown should be filtered (using WHICH field from the query/table)

Andrzej January 28, 2025

.

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

I dont need your real data, I just want to understand what DATA do you get from those 2 queries

To be able to link them together and (finally) help (loosing my hope already)

Andrzej January 28, 2025

.

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

You know what a TABLE is, right?

I will give you an example

Assuming the first query returns (field name is field1)

SELECT DISTINCT mpk as id, name FROM SecretTable

id   name
 1 MPK 1
 2 MPK 2

And the second returns (field name in ConfiForms is field2) 

SELECT id, label, mpk FROM SecretTable

id  label  mpk 
 Hello  1
 2 Beautiful  2
 3  World 1

In order to filter the second dropdown I would have an "Apply filter on filed" rule with a filtering expression like

mpk:[entry.id]

Alex

0 votes
Andrzej January 24, 2025

anynone? 

Andrzej January 27, 2025

@Alex Medved _ConfiForms_ maybe you could help?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events