Hi Mark

> On 10 Nov 2016, at 17:36, 'Mark S.' via TiddlyWiki 
> <[email protected]> wrote:
> 
> The reason it takes two steps is because you can't currently use the 
> <$select> widget to activate the action-setfield widget ... or at least I 
> don't think you can. Only the button widget can be used to send multiple 
> messages at once

Since 5.1.13 there’s been a new “actions” attribute that can be used on the 
select widget (and the keyboard widget). It is typically used by setting it to 
a macro defined in the same tiddler:

\define my-actions()
<$action-sendmessage $message=mymessage/>
<$action-setfield $tiddler=mytiddler $value=<<myvalue>>/>
\end

<$select tiddler="SampleReveal1" default="set1” actions=<<my-actions>>>
<option value="set1">Small Blue</option>
<option value="set2">Medium Red</option>
</$select>

Best wishes

Jeremy

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/797C6C69-502A-4206-ADEF-65D697539225%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to