When you want to use a macro for concatenation, you need to use the special 
macro variables. Either $variable$ or $(variable)$. The latter is often 
most useful.

\define basetitle() $(name)$ $(surname)$
<$vars name={{temp!!name}} surname={{temp!!surname}}>
<$button>
<$action-createtiddler $basetitle=<<basetitle>> tags="person" name=<<name>> 
surname=<<surname>> />
Create
</$button>
</$vars>



On Saturday, March 28, 2020 at 2:02:53 PM UTC-7, Giannis Moutsinas wrote:
>
> I have created a simple form tiddler that I want to use to create other 
> tiddler. My form tiddler takes data from another tiddler called [[temp]] 
> and has a button that creates the new tiddler:
> <$button>
> <$action-createtiddler $basetitle="title" tags="person" 
> name={{temp!!name}} surname={{temp!!surname}} />
> Create
> </$button>
> What I want to do is to give the name of a person as a title. For example 
> if the name is "John" and the surname is "Doe", I would like the new 
> tiddler to be titled "John Doe". I had several attempts but nothing worked. 
> How do I do that?
>
>
>

-- 
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/54d82679-7f6f-4617-9bda-150fd39efdfe%40googlegroups.com.

Reply via email to