Creating a new tiddler from fields

Hi,

I have a tiddler with some fields, among them “name” (value for instance “Smith”) and “firstname” (for instance “John”).
I’d like to make a button that would create a new tiddler with title “Smith John”

I would like to use somethinng like ;

\define testCreate()
<$action-createtiddler $basetitle=??? $template="Élève template">
    <$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
</$set>
\end


<$button actions=<<testCreate>> >
Create Tiddler
</$button>

But I cannot figure what $basetitle could be. I’ve tried with macros and filters (to attribute a value to a variable) to no avail.

Any help would be appreciated !

Thanks
FrD

I think the answer you’re looking for is {{{ [{!!name}addsuffix[ ]addsuffix{!!firstname}] }}}

Like

Hi @stobot

It works well !

Thanks a lot

FrD