Skip to content

Filter For Multiple Backlinks In File Property #3014

Answered by claremacrae
23426356587 asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that your file is using two different Property Types - List and Text - and the JavaScript code for searching them is different.

I found a way that you can use the same filter for both, though.

The group by function lines are so you can visualise what the following does:

`${task.file.property('TestSingle')}`

Text to copy and try out:

## Alternatives

### This Works: Convert TestSingle property to string, then search

```tasks
not done
filter by function `${task.file.property('TestSingle')}`.includes('[[File1]]')
group by function  'Text being searched: ```' + `${task.file.property('TestSingle')}` + '```'
```

### This Works: Convert Test property to string, then search

```…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@23426356587
Comment options

@claremacrae
Comment options

@claremacrae
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by claremacrae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scope: filters Additions and modifications to the search filters scope: scripting Issues to do with custom filters, custom sorting and similar
2 participants