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 mohamed...@hotmail.com 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2db0e3dc-6ac9-49fb-8471-a3f6cf06adcan%40googlegroups.com.

Reply via email to