Filter Org Chart using Custom Boolean Field

I am trying to filter the org chart (user profile) with custom Boolean field. My code as below.
Its not working, appreciate help.

function(itemData){

return itemData "FieldValue" = true;

return true;
}

Hello! You need to set the filtration rule according to the documentation and common JavaScript syntax.

The reference to the data source should look like: itemData "FieldValue" > itemData["FieldValue"]. Note, that the "FieldValue" is the column name in the data source. You can find the available columns here:

For comparing, the double equals sign is used: = > ==.

In the function, only the first return will work. All the code under it will be ignored. Thus, the filtration function should look like:

function(itemData){
  return itemData["FieldValue"] == true;
}

Hi, Thanks for reply. I have updated as below, still filtering is not working.
image

Oh, I am sorry, I mad a typo:

function(itemData){
  return itemData["FieldValue"] == true;
}

I have updated my post above to avoid further confusions.

Hi, Its not working in both cases, i have attached screenshot for your reference.


Please share the screenshots of the rendered chart and of the data source items/profiles that should be shown and filtered out. The value in the "RSPCorpFunction" field should be visible. Clarify why you think that it does not work.