What is wrong with this action please

148 views
Skip to first unread message

TonyM

unread,
Aug 30, 2018, 6:08:12 AM8/30/18
to TiddlyWiki
Hi Folks,

Just trying to cause one field to be changed buy the selection of a value in another field. I am not sure why its not working, any help would be appreciated.

\define hide-me-action() <$action-setfield $field="item-hide" $value="yes"/>

<$wikify name="choice-filter" text="{{$:/PSaT/EditFields/fields/item-requeued!!field-choice-filter}}">
<$select field="item-requeued" actions="hide-me-action">
<$list filter=<<choice-filter>> variable=selection>
<option value=<<selection>> ><<selection>></option>
</$list>
</
$select>
</$wikify


The above selects on of the choices and populates the item-requeued field field correctly, 
However I expect the action to set item-hide to yes
It is not

Thanks in Advance
Tony


Mark S.

unread,
Aug 30, 2018, 11:27:18 AM8/30/18
to TiddlyWiki
Hi Tony !

You want:

<$select field="item-requeued" actions=<<hide-me-action>>>
<$list filter=<<choice-filter>> variable=selection>

HTH

-- Mark

TonyM

unread,
Aug 30, 2018, 8:46:45 PM8/30/18
to TiddlyWiki
Mark,

Thanks for that - I was blind to it.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages