Well, I did change one thing from your last example. Here is the final version that worked as required, for those that read this later. <input id="app_nodes_multiselect" type="multiselect...
See more...
Well, I did change one thing from your last example. Here is the final version that worked as required, for those that read this later. <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$="*"">
<set token="app_net_fm_entity_id">_all</set>
<set token="condition">1</set>
</condition>
<condition>
<set token="condition">2</set>
<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>
<set token="app_net_fm_entity_id">$app_fm_entity_id$</set>
</condition>
</change>
</input>