Filter referenced items with Text field

Let’s say you have used a Relationship field in your app for referencing another app, and you want to filter items by choosing a word and then show a specific field of the referenced app.

Then you should copy paste the following javascript:

 

var s = @All of Status;
var d = @All of –;
var st = @Select Status:;

var i, j;
var res = “”;

for(i = 0; i < s.length; i++){
if( st == s[i]){
res += d[i] + “\n”;
}
}
res

/* ——————————————————————————————————-

Created by BendixKiel ApS – Copenhagen based Podio Preferred Partner -with more than 6 years of experience in helping organizations implement Podio. Please feel free to contact us if you need help evaluate, structure or implement Podio in your organization.

BendixKiel ApS www.bendixkiel.org +45 71 99 05 80 anders@bendixkiel.org

———————————————————————————————————– */

Don’t forget to replace @Select Status with your own Text field that has the filter text, @All of Status with your referenced app field that might have the filter text, and @- with a referenced app field that you need to show after filtering

 

Let’s try to put it in Modify Template

filteritems1.1

 

So the result is the following:

filteritems1.2

No comments yet.

Leave a Reply