\define concat() request {{$:/temp/RequestScannedPart}}Scanned part :<$edit-text tiddler="$:/temp/RequestScannedPart" tag="input" placeholder="New part" default=""/><$button><$wikify name="tagToSend" text=<<concat>>>
<$action-setfield $tiddler={{$:/temp/RequestName}} $field="tags" $value=<<tagToSend>>/>
</$wikify>Create
</$button>
Scanned part :<$edit-text tiddler="$:/temp/RequestScannedPart" tag="input" placeholder="New part" default=""/>
<$fieldmangler tiddler={{$:/temp/RequestName}} >
<$button>
<$action-sendmessage $message="tm-add-tag" $param={{$:/temp/RequestScannedPart}} />
Create
</$button>
<$fieldmangler>
Click here to ReplyAnother, less elegant but more intuitive solution could be
```
\define concat() <$text text="[["/>request {{$:/temp/RequestScannedPart}}<$text text="]]"/>
Scanned part :<$edit-text tiddler="$:/temp/RequestScannedPart" tag="input" placeholder="New part" default=""/>
<$button>
<$wikify name="tagToSend" text=<<concat>>>
<$action-setfield $tiddler={{$:/temp/RequestName}} $field="tags" $value=<<tagToSend>>/>
</$wikify>
Create
</$button>
```
There are often (always?) various way to do something in TW... A good way to find your path is describing your goals rather than putting your solution for a review.
Cheers
Sylvain
@sycom
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/cFcOsTQ1Q5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c6f9b53c-09d4-40be-a521-0aacf0361916%40googlegroups.com.