cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anomadeus
Level: Powered On

Conditional card visibility from SP Lookup List

I have read a lot of posts about Conditional forumlas. I cant seem to get this one to work.

I need to display a datacard if the value is present in a drop down, multivalue, lookup (coming from sharepoint) drop down list. 

 

Visible = If(LookUp(Application Owners,RequestType = Email/Shared Mailbox.Selected.Value), true, false)

 

Is what i'm have been trying but i'm getting issues with the data source name stating its invalid (its correct), the value name (its correct). Any ideas?

 

Please & Thanks

 

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Conditional card visibility from SP Lookup List

Would you please share more details about the error message?

 

if the lookup field is from SharePoint list, then I suspect the Control should be a ComboBox control, so the formula should be modified as below:

Visible = If(!IsEmpty(filter(Application Owners,RequestType in Email/Shared Mailbox.SelectedItems.Value)), true, false)

The first parameter of if expects the expression to be a boolean type value, while the lookup function will result in a record type, os it will not work.

IsEmpty () together with the filter function will make the expression result in boolean value, to determine whether there is records matches the search condition.

 

Let me know if you have any further questions.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anomadeus
Level: Powered On

Re: Conditional card visibility from SP Lookup List

Thank you or your reply. Here is the error that your formula has generated.image.png

 

The control that the user select the choices from is a combo box called RequestType. i'm not sure I need it to search records.. I just need it to test if the user has selected "Email/Shared Mailbox"  from the RequestType combo box and then have it make the card visable.

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,727)