Hi,
I am experimenting with the FormTiddler plugin and I have found
something I cannot solve. Hopefully I'll gain some insight on the
workings of TW from this (I also hope to find a solution!)
I want to have a form where some information is filled in
automatically in a table (maybe it's already a bad idea not to use
HTML tags and so on). Let's say for example that I want the beginning
of the table to be "Title: "+title of the tiddler. Then there would be
some text fields etc. So I have a tiddler called SampleForm with:
|Title: <<PrintTiddlerTitle>>|Date: <html><input name="date"
type="text" size="10"/></html>| etc etc
The macro PrintTiddlerTitle is just:
config.macros.PrintTiddlerTitle = {
handler: function (place, macroName, params, wikifier, paramString,
tiddler)
{
// prints the current tiddler's title
var text = tiddler.title;
wikify(text,place);
}
};
Now, this shows properly in SampleForm, but not in any tiddler that
uses it. In particular, there is SampleTemplate (used by NewTiddler):
Some stuff
...
<<formTiddler SampleForm>>
...
And other stuff
Or alternatively, just a call to newTiddlerWithForm:
<<newTiddlerWithForm SampleTemplate label>>
In either case, I get "Error in macro <<PrintTiddlerTitle>>". Why
would this be?
I can take my template and put the non-fillable part in a different
table outside the form. But eventually I will also want to manipulate
data from the form with macros that can read the information. Is there
a reasonable way to do this?
Thanks a lot,
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---