WoW!! Your example got me super close to the finish line!!! The only issue left is that when I have "All" selected with other options and then unselect other options so that only the "All" option remains, then the "app_net_fm_entity_id" token gets unset, instead of having the value of "_all" <input id="app_nodes_multiselect" type="multiselect" depends="$app_fm_app_id$" token="app_fm_entity_id" searchWhenChanged="true">
<label>Nodes</label>
<delimiter> </delimiter>
<fieldForLabel>entity_name</fieldForLabel>
<fieldForValue>internal_entity_id</fieldForValue>
<search>
<query>
| inputlookup aix_kv_apm_comps WHERE entity_type!=$app_fm_group_nodes$
| search [| makeresults | eval search="internal_parent_id=(".mvjoin($app_fm_app_id$, " OR internal_parent_id=").")" | return $search]
| table entity_name, internal_entity_id
| sort entity_name
</query>
</search>
<choice value="*">All</choice>
<default>*</default>
<change>
<condition match="$form.app_fm_entity_id$="*"">
<eval token="app_net_fm_entity_id">_all</eval>
</condition>
<condition>
<eval token="app_net_fm_entity_id">case(mvcount($form.app_fm_entity_id$)="2" AND mvindex($form.app_fm_entity_id$,0)="*", mvindex($form.app_fm_entity_id$,1), mvfind($form.app_fm_entity_id$,"^\\*$$")=mvcount($form.app_fm_entity_id$)-1, "_all", true(), $form.app_fm_entity_id$)</eval>
</condition>
</change>
</input>
... View more