I need help removing these open & closed brackets in the token, please see below the dashboard code FYI
<form>
<label>token eval drilldown</label>
<fieldset submitButton="false">
<input type="dropdown" token="manager" searchWhenChanged="true">
<label>Account Managers</label>
<choice value="*">All</choice>
<choice value="123","456","789","431C","343">XYZ</choice>
<choice value="786","274","245","237","2523","245","257">ABC</choice>
<choice value="463","234","234","3543">DEF</choice>
<default>*</default>
<initialValue>*</initialValue>
<prefix>| search u_user_type IN (</prefix>
<suffix>)</suffix>
<!--<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter>, </delimiter>-->
<change>
<condition>
<eval token="tok_manager">replace($manager$,"(.\| search u_user_type IN \()","")</eval>
</condition>
</change>
</input>
</fieldset>
<row>
<panel>
<html>
<p>$manager$</p>
<p>$tok_manager$ <-- i need to remove these open & close brackets</p>
</html>
</panel>
</row>
</form>
You need an extra backslash on the escapes
<form version="1.0.0">
<label>token eval drilldown</label>
<fieldset submitButton="false">
<input type="dropdown" token="manager" searchWhenChanged="true">
<label>Account Managers</label>
<choice value="*">All</choice>
<choice value="123","456","789","431C","343">XYZ</choice>
<choice value="786","274","245","237","2523","245","257">ABC</choice>
<choice value="463","234","234","3543">DEF</choice>
<default>*</default>
<initialValue>*</initialValue>
<prefix>| search u_user_type IN (</prefix>
<suffix>)</suffix>
<!--<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter>, </delimiter>-->
<change>
<condition>
<eval token="tok_manager">replace(replace($manager$,"(\\| search u_user_type IN \\()",""),"(\\))","")</eval>
</condition>
</change>
</input>
</fieldset>
<row>
<panel>
<html>
<p>$manager$</p>
<p>$tok_manager$ <-- i need to remove these open & close brackets</p>
</html>
</panel>
</row>
</form>
You need an extra backslash on the escapes
<form version="1.0.0">
<label>token eval drilldown</label>
<fieldset submitButton="false">
<input type="dropdown" token="manager" searchWhenChanged="true">
<label>Account Managers</label>
<choice value="*">All</choice>
<choice value="123","456","789","431C","343">XYZ</choice>
<choice value="786","274","245","237","2523","245","257">ABC</choice>
<choice value="463","234","234","3543">DEF</choice>
<default>*</default>
<initialValue>*</initialValue>
<prefix>| search u_user_type IN (</prefix>
<suffix>)</suffix>
<!--<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter>, </delimiter>-->
<change>
<condition>
<eval token="tok_manager">replace(replace($manager$,"(\\| search u_user_type IN \\()",""),"(\\))","")</eval>
</condition>
</change>
</input>
</fieldset>
<row>
<panel>
<html>
<p>$manager$</p>
<p>$tok_manager$ <-- i need to remove these open & close brackets</p>
</html>
</panel>
</row>
</form>