Set a where condition for if there is an image

Duncan Koza asked on April 9, 2020 17:47

Hello,

I have a repeater that loads up all my weblink page types. In those page types I have a field called "LinkImage" which is optional. The Data type is "File" and I limit it to just image file types.

Is it possible to set a 'Where Condition' in the repeater to only load the page types that have an image?

Example: {% IfEmpty(LinkImage,"Do not Show","Show") %}

I was thinking of thinking of entering something like this LinkImage!="", but it didn't work.

Thanks.

Correct Answer

Brenden Kehren answered on April 9, 2020 17:53

In the repeater web part WhereCondition property, set the value equal to:

LinkImage IS NOT NULL

0 votesVote for this answer Unmark Correct answer

Recent Answers


Duncan Koza answered on April 9, 2020 18:36

Thank you.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.