[tw5] Re: Saving the concatenation of the values of two variables in a new variable

2019-12-22 Thread 'Matthias Katerbow' via TiddlyWiki
Perfect! That's it :-)

The code below works great to create a new tiddler with a title from two 
fields of a form:

\define linkup() $(first)$, $(second)$


<$tiddler tiddler="$:/state/NewIndividualForm">


| First Name|<$edit-text class='tc-edit-texteditor' field='firstname_temp' 
placeholder='First Name'/>|
| Last Name |<$edit-text class='tc-edit-texteditor' field='lastname_temp' 
 placeholder='Last Name' />|


<$vars first={{!!firstname_temp}} second={{!!lastname_temp}}>
  <$button>
  <$action-sendmessage $message="tm-new-tiddler" title=<>/>
Create Tiddler
  





-- 
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/87407974-b890-47ae-aa2e-e106d32ee901%40googlegroups.com.


[tw5] Re: Saving the concatenation of the values of two variables in a new variable

2019-12-22 Thread 'Matthias Katerbow' via TiddlyWiki
Hi Eric,
many thanks, that works well.

The reason why I wanted to use the additional variable "title_temp" is to 
pass the result of <> to a button (see below).

This means I'm looking for a way to use the variables outside $vars widget 
as you see below. How would I do that?

\define linkup() [[$(first)$, $(second)$]]

<$tiddler tiddler="$:/state/NewIndividualForm">

| First Name|<$edit-text class='tc-edit-texteditor' field='firstname_temp' 
placeholder='First Name'/>|
| Last Name |<$edit-text class='tc-edit-texteditor' field='lastname_temp' 
 placeholder='Last Name' />|

<$vars first={{!!firstname_temp}} second={{!!lastname_temp}}>
  <>


<$button>
<$action-sendmessage $message="tm-new-tiddler" title=<>/>
Create Tiddler





-- 
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/d6f1398b-56f2-43af-8b9a-c52007a7722d%40googlegroups.com.


[tw5] Saving the concatenation of the values of two variables in a new variable

2019-12-21 Thread 'Matthias Katerbow' via TiddlyWiki
Hi folks,

I'm trying to save the concatenation of the values of two variables in a 
new variable:

\define linkup(firststring,secondstring) [[$firststring$, $secondstring$]]

| First Name|<$edit-text class='tc-edit-texteditor' 
tiddler="$:/state/NewIndividualForm" field='firstname_temp' 
placeholder='First Name'/>|
| Last Name|<$edit-text class='tc-edit-texteditor' 
tiddler="$:/state/NewIndividualForm" field='lastname_temp' 
placeholder='Last Name'/>|

<$set name="title_temp">
<$macrocall $name="linkup" 
firststring={{$:/state/NewIndividualForm!!lastname_temp}} 
secondstring={{$:/state/NewIndividualForm!!firstname_temp}}/>


Unfortunately the new variable <> stays empty.

Any suggestions how to do that better?

Thx!

-- 
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/bc5a72bc-7247-4e32-b258-5329266a23d2%40googlegroups.com.