On Sunday, April 5, 2020 at 6:31:01 AM UTC-7, TonyM wrote:
>
> Any guidance on why this may not work would be appreciated.r works
> \define set-input-actions()
> <$list filter="[{!!selected-input}match[allobjects]]">
>    <$action-setfield $field="input" 
> $value="[!is[system]object-type{!!selected-object}]"/>
> </$list>
> <$list filter="[{!!selected-input}match[objects]]">
>    <$action-setfield $field="input" $value={{!!instances-list}}/>
> </$list>
> <$list filter="[{!!selected-input}match[lists]]">
>    <$action-setfield $field="input" $value="{{!!selected-lists}}"/>
> </$list>
> <$list filter="[{!!selected-input}match[filter]]">
>    <$action-setfield $field="input" $value="{{!!selected-filter}}"/>
> </$list>
> \end
> I have tested the conditions in the actions but they are not working "as 
> actions"
>

When you read the answer, I think you'll go "D'oh!":

The $list widgets in set-input-actions() are changing the value of 
currentTiddler.  As a result, the $action-setfield is creating new tiddlers 
named with the matched value!

Adding variable="null" to each $list widget fixes the problem.

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0c0872f8-c5ed-4d4c-b26b-0fea15c960ab%40googlegroups.com.

Reply via email to