<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=NewTiddlerWithFormMacro</id>
	<title>NewTiddlerWithFormMacro - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=NewTiddlerWithFormMacro"/>
	<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=NewTiddlerWithFormMacro&amp;action=history"/>
	<updated>2026-10-25T12:11:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.dirkjanswagerman.nl/index.php?title=NewTiddlerWithFormMacro&amp;diff=4138&amp;oldid=prev</id>
		<title>Dirkjan: Created page with &quot;&#039;&#039;&#039;The newTiddlerWithForm Macro&#039;&#039;&#039;  To create tiddlers that are referencing FormTemplates you may use the {{{&lt;&lt;newTiddlerWithForm...&gt;&gt;}}} macro.   The {{{&lt;&lt;ne...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=NewTiddlerWithFormMacro&amp;diff=4138&amp;oldid=prev"/>
		<updated>2020-08-25T10:46:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;The newTiddlerWithForm Macro&amp;#039;&amp;#039;&amp;#039;  To create tiddlers that are referencing &lt;a href=&quot;/index.php?title=FormTemplate&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;FormTemplate (page does not exist)&quot;&gt;FormTemplates&lt;/a&gt; you may use the {{{&amp;lt;&amp;lt;newTiddlerWithForm...&amp;gt;&amp;gt;}}} macro.   The {{{&amp;lt;&amp;lt;ne...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;The newTiddlerWithForm Macro&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To create tiddlers that are referencing [[FormTemplate|FormTemplate]]s you may use the {{{&amp;lt;&amp;lt;newTiddlerWithForm...&amp;gt;&amp;gt;}}} macro. &lt;br /&gt;
&lt;br /&gt;
The {{{&amp;lt;&amp;lt;newTiddlerWithForm...&amp;gt;&amp;gt;}}} macro displays a button. When pressed the button creates the requested tiddler and displays it. &lt;br /&gt;
&lt;br /&gt;
If no title is given in the macro (or a tiddler with the given name already exists) the user can enter the tiddlers name in a dialog.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Syntax:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&amp;gt;&lt;br /&gt;
|{{{&amp;lt;&amp;lt;}}}&amp;#039;&amp;#039;&amp;#039;newTiddlerWithForm&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;formTemplateName&amp;#039;&amp;#039; &amp;#039;&amp;#039;buttonLabel&amp;#039;&amp;#039; [&amp;#039;&amp;#039;titleExpression&amp;#039;&amp;#039; [&amp;#039;&amp;#039;&amp;#039;askUser&amp;#039;&amp;#039;&amp;#039;]] {{{&amp;gt;&amp;gt;}}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;formTemplateName&amp;#039;&amp;#039;&lt;br /&gt;
|The name of the tiddler that defines the form the new tiddler should use.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;buttonLabel&amp;#039;&amp;#039;&lt;br /&gt;
|The label of the button&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;titleExpression&amp;#039;&amp;#039;&lt;br /&gt;
|A (quoted) JavaScript String expression that defines the title (/name) of the new tiddler.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;askUser&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Typically the user is not asked for the title when a title is specified (and not yet used). When &amp;#039;&amp;#039;&amp;#039;askUser&amp;#039;&amp;#039;&amp;#039; is given the user will be asked in any case. This may be used when the calculated title is just a suggestion that must be confirmed by the user&lt;br /&gt;
|-&lt;br /&gt;
|&amp;gt;&lt;br /&gt;
|~~Syntax formatting: Keywords in &amp;#039;&amp;#039;&amp;#039;bold&amp;#039;&amp;#039;&amp;#039;, optional parts in [...]. &amp;#039;or&amp;#039; means that exactly one of the two alternatives must exist.~~&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Ask the user for a bug report name and create a bugreport.&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;&amp;lt;newTiddlerWithForm BugReportTemplate &amp;quot;New Bugreport&amp;quot;&amp;gt;&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
&amp;lt;&amp;lt;newTiddlerWithForm BugReportTemplate &amp;quot;New Bugreport&amp;quot;&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create a blog entry tiddler. Let the user confirm the automatically generated title (that contains the current date) or change it.&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;&amp;lt;newTiddlerWithForm &lt;br /&gt;
 BlogTemplate &lt;br /&gt;
 &amp;quot;New Blog&amp;quot; &lt;br /&gt;
 &amp;#039;&amp;quot;Blog: &amp;quot;+(new Date()).formatString(&amp;quot;YYYY-MM-DD&amp;quot;)&amp;#039; askUser&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
&amp;lt;&amp;lt;newTiddlerWithForm &amp;lt;missing &amp;#039;&amp;gt;&amp;gt;&amp;#039;&amp;gt;&lt;br /&gt;
 BlogTemplate &lt;br /&gt;
 &amp;quot;New Blog&amp;quot; &lt;br /&gt;
 &amp;#039;&amp;quot;Blog: &amp;quot;+(new Date()).formatString(&amp;quot;YYYY-MM-DD&amp;quot;)&amp;#039; askUser&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
=Using the build-in newTiddler macro=&lt;br /&gt;
Instead of the {{{&amp;lt;&amp;lt;newTiddlerWithForm&amp;gt;&amp;gt;}}} macro you may also use the build-in {{{&amp;lt;&amp;lt;newTiddler&amp;gt;&amp;gt;}}} macro to create tiddlers referencing [[FormTemplate|FormTemplate]]s. E.g. you may use the {{{&amp;lt;&amp;lt;newTiddler&amp;gt;&amp;gt;}}} macro to create a tiddler with tags .&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;text&amp;quot; you need to call the formTiddler macro and in the tagparameters you specify your tags. E.g.:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;&amp;lt;newTiddler&lt;br /&gt;
        label:&amp;quot;Button Label&amp;quot;&lt;br /&gt;
        text:{{&amp;quot;&amp;lt;&amp;lt;formTiddler [[MyTemplateTiddler]]&amp;gt;&amp;quot;+&amp;quot;&amp;gt;&amp;quot;}}&lt;br /&gt;
        tag:&amp;quot;MyTag1&amp;quot;&lt;br /&gt;
        tag:&amp;quot;Three Word Tag&amp;quot; &lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
For details on newTiddler see http://tiddlywiki.org/wiki/NewTiddler_%28macro%29 &lt;br /&gt;
[[Category:thework]]&lt;/div&gt;</summary>
		<author><name>Dirkjan</name></author>
		
	</entry>
</feed>