I have a dashboard (form) that I'm trying to allow a text field to accept single values or comma separated values that will be replaced by "* OR" right now when I first start up the dashboard and enter a single value, it just stays at "Search is waiting for input.." if I enter comma separated values it will run the search. I tried rapping the eval in a if statement to check for commas, but that didn't seem to do anything.
Here is what I currently have:
<input type="text" token="clientTransactionId" searchWhenChanged="true" id="webOrder">
<label>Transaction Id (for multiple use csv's):</label>
<change>
<eval token="clientTransactionId_formatted">if(like($clientTransactionId$, "%,%"),replace($clientTransactionId$,",","* OR"),$clientTransactionId$)</eval>
</change>
</input>
And here is what I tried before:
<eval token="clientTransactionId_formatted">replace($clientTransactionId$,",","* OR")</eval>
How can I set this up to run? I need it to eval before search, there are too many transactions to filter after search has ran.
Thanks!
... View more