Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

How to escape double quotes in SideView Utils Textfield Module

$
0
0

I have a dashboard that uses two SideView Utils TextField modules. The set up is as follows:

view
    textfield
        checkboxes
        checkboxes
   textfield
   button
   search
   table
view

The problem I'm having is in the search at the bottom I use the eval to set default values if the textfields are empty. If a user submits something with quotes, I always get an error:

"unbalanced quotes"

The parameters for the TextField parameters are only using the 'name' value with the others left as default. I did try to incorporate the 'template' as:

$value$

and "$value$"

But the results are the same.

I also try using the ValueSetting module and sent one of the TextField values through it but the results seem the same.

So my question is basically: Is there a way to automatically escape any characters that might cause the downstream search to throw an error? My interpratation of the help documents is that the foo token $*.value$ should send a fully escape value that can be used within a search. In another dashboard I ended up using a custombehavior to help with this.

Thanks, -jp


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>