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

Display message in HTML table based on YES/NO SharePoint List

I have an HTML with people. Im storing the people in a collection called Balance under EmployeeName.

In sharepoint i have a list called HR with all the people and a yes/no column. If the column is set to yes i want to display  "Card" next to Employee name.

i've tried

If( true in HR.OData__x0037_Card And EmployeeName in HR.Title, ", Card")

but this will display "Card" for everybody, even for those who have have no in sharepoint list

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: Display message in HTML table based on YES/NO SharePoint List

I've managed to solve it.

If( EmployeeName in Filter(HR, OData__x0037_Card=1).Title  , ", Card")

instead of searching for true, false, yes or no i switched to 1 and 0. This gives me what i want.

 

Still puzzled about the if issues. I tried 

If( "***" in HR.OData__x0037_Card  , ", Card")

and returns true 

View solution in original post

4 REPLIES 4
Helper III
Helper III

Re: Display message in HTML table based on YES/NO SharePoint List

just tried 

If(  "z" in HR.OData__x0037_Card , ", Card", "NOTHING")

and this returns true and displays "Card". 

I dont know how it can be possible for "z" to exist in "yes/no" or "true/false"

Highlighted
Resolver II
Resolver II

Re: Display message in HTML table based on YES/NO SharePoint List

@Konjic Hi

Think your trouble might be connected with the YES/NO column this type is not working well in the PowerApps.

Please for the testing add the Text type filed where you would add in manually values "Yes" , "No"

Refresh Data source and add new column to Power App.
Apply formula:

If( "Yes" in HR.OData__x0037_Card And EmployeeName in HR.Title, ", Card")


Test if this will resolve your problem if yes, please accept this answer as solution. 

If no, please share more details about your use case:
- HTML with people ?
- Are you displaying / building dynamic content using Collection and HTML ?

 

Highlighted
Helper III
Helper III

Re: Display message in HTML table based on YES/NO SharePoint List

@365CornerDawid 

Did that and didnt solved the problem.

 

What i mean by "HTML with people" is i have an HTML table filled with text values stored in a collection

Yes. Im building a dynamic HTML table using multiple collections

Highlighted
Helper III
Helper III

Re: Display message in HTML table based on YES/NO SharePoint List

I've managed to solve it.

If( EmployeeName in Filter(HR, OData__x0037_Card=1).Title  , ", Card")

instead of searching for true, false, yes or no i switched to 1 and 0. This gives me what i want.

 

Still puzzled about the if issues. I tried 

If( "***" in HR.OData__x0037_Card  , ", Card")

and returns true 

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,762)