It works perfectly, thanks a lot :)
On Wednesday, August 21, 2019 at 11:07:28 PM UTC+2, Mark S. wrote:
>
> The solution is not intuitive, but here you go. There's a special
> technique for adding new tags. You could
> also do this with the action-listops widget.
>
> 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 Reply
>
>
>
> On Wednesday, August 21, 2019 at 12:04:50 PM UTC-7, damien Dupont wrote:
>>
>> Hello,
>>
>> I wrote a a code that has the purpose to create in the background a new
>> tiddler with a some tags and one of those tags is the user input from an
>> edit-text widget. The problem is that if the user write something with
>> space ex : "A chair", the created tiddler will have "A" and "chair" as tag
>> instead of on tag "A chair". Has someone an idea how to solve this ?
>>
>> Extract of my code :
>>
>> \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>
>>>
>>
--
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/87e8715e-3bfe-4de6-949d-663f00f0fff0%40googlegroups.com.