It's a bit convoluted because the tags need to be added with the tm-add-tag
message after the new tiddler is created. This seems to work:
\define makenewtiddler()
<$action-createtiddler $basetitle={{UseMeAsName}} $savetitle=
"NewTiddlerName" />
<$fieldmangler tiddler={{NewTiddlerName}}><$action-sendmessage $message=
"tm-add-tag" $param="""$(MyTag)$"""/></$fieldmangler>
\end
<$select tiddler="UseMeAsTag" default='HelloThere'>
<$list filter='[tag[HelloThere]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
<$edit-text tiddler="UseMeAsName" tag="input" size="20"/>
<$vars MyTag={{UseMeAsTag}}>
<$button actions=<<makenewtiddler>>>Make Tiddler</$button>
</$vars>
On Monday, July 16, 2018 at 6:47:59 AM UTC-7, Geoff Osterberg wrote:
>
> I'm trying to create tiddler that will act as a form for new tiddlers.
>
> I want to have an edit-widget that will pass on the title to a new
> tiddler. I also want to use a select-widget to choose among a list of
> tiddlers with the tag "Scene" to use as the tag for the new tiddler.
>
> So far I have been unable to sort this out. The edit-widget does pass
> along the title to a new widget, but I can't get the drop down list
> selection to pass along. I did once, but each word of the selection was
> rendered as a separate tag. I've read the entry on the select function a
> few times, but I'm learning on the fly and having difficulty making sense
> of it. Could anyone point me in the direction of a more tutorial that can
> help me understand how to achieve the goal?
>
>
>
--
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/0cf320f1-fb35-46b1-9491-d54bc792e7aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.