@marone besides applying the expression string from multiselect as token, you will also need to ensure that table visualization is refreshed every time multiselect value is changed (this can be done through JS). So, instead I am giving a Link input as submit button which resets the token so that search is re-run and table gets refreshed.
Following is the Simple XML run anywhere example which you can try and confirm!
<form>
<label>Highlight Selected values in Table</label>
<fieldset submitButton="false">
<input type="multiselect" token="chosenAdmin" searchWhenChanged="true">
<label>Select User to Highlight in the table</label>
<delimiter> </delimiter>
<change>
<unset token="refresh"></unset>
</change>
<fieldForLabel>user</fieldForLabel>
<fieldForValue>user</fieldForValue>
<search>
<query>| makeresults
| fields - _time
| eval user="UserA,UserB,UserC,UserD,UserE,UserF,UserG,UserH"
| makemv user delim=","
| mvexpand user</query>
</search>
</input>
<input id="button_submit1" type="link" token="tokLinkSubmit" searchWhenChanged="true">
<label></label>
<choice value="submit">Submit</choice>
<change>
<condition value="submit">
<set token="refresh">true</set>
<unset token="form.tokLinkSubmit"></unset>
</condition>
</change>
</input>
</fieldset>
<row>
<panel>
<html depends="$alwaysHideCSSPanel$">
<style>
div[id^="button_submit"] div[data-component="splunk-core:/splunkjs/mvc/components/LinkList"]{
width:40% !important;
}
div[id^="button_submit"] button[data-test="option"]{
padding: 6px 15px;
font-weight: 500;
background-color: #5cc05c;
border: transparent;
}
div[id^="button_submit"] span[data-test="label"]{
color: white !important;
}
div[id^="button_submit"] span[data-test="label"]:hover{
color: #3c444d !important;
}
</style>
</html>
<table>
<search depends="$refresh$">
<query>| makeresults
| fields - _time
| eval user="UserA,UserB,UserC,UserD,UserA,UserE,UserC,UserF,UserA,UserB,UserG,UserH"
| makemv user delim=","
| mvexpand user</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="count">20</option>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
<format type="color" field="user">
<colorPalette type="expression">if (like("$chosenAdmin$",value),"#DC4E41","#FFFFFF")</colorPalette>
</format>
</table>
</panel>
</row>
</form>
... View more