Thank you Eric,
One more thing if possible , the field part somefield, i need to transclude
a value there with spaces
somefield={{!!title}}
and i cant add brackets , because this turns it into a string [[{{!!title}}
]]
Is there any way to insert the value inclosed in brackets ?
On Sunday, June 6, 2021 at 10:18:47 PM UTC+2 Eric Shulman wrote:
> addendum:
>
> If you want to create new tiddlers with automatic numbering if the tiddler
> already exists, use $action-createtiddler, like this:
>
> <$button> click me
> <$action-createtiddler $basetitle="SomethingNew" text="yabba dabba
> doo!" tags="foo bar baz" caption="this is a caption" somefield="argle
> bargle" />
> </$button>
>
> -e
>
> On Sunday, June 6, 2021 at 1:14:27 PM UTC-7 Eric Shulman wrote:
>
>> On Sunday, June 6, 2021 at 12:43:25 PM UTC-7 [email protected]
>> wrote:
>>
>>> is there a way to have a button create a new tiddler ,save it and
>>> close it all in one click?
>>>
>>
>> You can create a tiddler and set field values without ever opening it by
>> using $action-setfield, like this:
>>
>> <$button> click me
>> <$action-setfield $tiddler="SomethingNew" text="yabba dabba doo!"
>> tags="foo bar baz" caption="this is a caption" somefield="argle bargle" />
>> </$button>
>>
>> -e
>>
>
--
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/69b7b27d-451a-4276-bb13-3f05fcc030f7n%40googlegroups.com.