cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hong_yip
Helper III
Helper III

Filter base on sharepoint list combobox

i want to create combobox, merge two choice field values in combobox, and add filter function select one of staff.

e.g staff1 login and combobox only have "A"  and "D" value at combobox, staff2 login and combobox only have "B"  and "F" value at combobox

combobox1.jpgcombobox2.jpgcombobox3.jpg

hong_yip_0-1612174776935.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @hong_yip ,

 

According to your description, I did a test for you:

1\ Add a combo box control 'ComboBox1' and set its Items property to:

ManagersDepartment.'Manager''s Name'

 

Set the combo box control's Onchange property to:

Reset(ComboBox2)

 

2\ Add a combo box control 'ComboBox2' and set its Items property to:

Table(LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_1,LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_2)

 

3\ The result is as follows:

QQQ.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @hong_yip ,

 

According to your description, I did a test for you:

1\ Add a combo box control 'ComboBox1' and set its Items property to:

ManagersDepartment.'Manager''s Name'

 

Set the combo box control's Onchange property to:

Reset(ComboBox2)

 

2\ Add a combo box control 'ComboBox2' and set its Items property to:

Table(LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_1,LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_2)

 

3\ The result is as follows:

QQQ.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

Thx v-xiaochen-msft

 

now i can get dept_1 and dept_2 at combobox, i want to do one more thing, how can i filter other sharepoint list at gallery from combobox.

 

other list below

 

order(Single line of text)    Department(Lookup)
O-1234                                A
O-1235                                B
O-1236                                C
O-1237                                D
O-1238                                E
O-1239                                F

v-xiaochen-msft
Community Support
Community Support

Hi @hong_yip ,

 

Glad to help you.

This post has been solved. If you have a new problem, please create a new post.

I am glad to continue to help you.

 

Best Regards,

Wearsky

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,629)