Forum Discussion

jmn3's avatar
jmn3
Cloud Apps
04-08-2022
Solved

Creating A Filter From A Text Box

I was able to successfully replicate the code in this tutorial to use the text from a box as a filter:  https://support.sisense.com/kb/en/article/creating-a-filter-from-a-text-box

 

However, I want to modify the action so that it returns similar values instead of exact values. For example if I type in "five", I want filter to return all values that contain the word "five".

 

I modified the action below and changed the filter property value from 'members' to 'contains' but I keep getting an error and can't seem to figure out how to fix this.

Original action code:

Modified to:

But get error:

 

2 Replies

Replies have been turned off for this discussion
  • harikm007's avatar
    harikm007
    Data Warehouse

    jmn3 ,

    In Action code, replace filter_arr with filter_arr[0]

    -Hari

     

  • jmn3's avatar
    jmn3
    Cloud Apps

    Thank you! That worked. I knew it was going to be an easy fix 😅