What you need to do is to run the store.saveTiddler() method with the 
desired parameters *before* opening the new tiddler...

http://tiddlywikidev.tiddlyspace.com/#store.saveTiddler()

I am sure you will find plenty code example in this group or the 
TiddlyWikiDev group. Let us know if you need further help.^

Mhhh, after peeking into your example I see that you have declared a submit 
handler but that it doesn'T actually seem to be invoked, nor does it seem 
to do all the desired handling, e.g.

   1. save the new tiddler
   2. close the current one (or all others)
   3. open the new tiddler

Not sure about your jQuery validator, haven't worked with it yet. I assume 
it runs some tests and checks conditions for being true and eventually 
invokes the submitHandler. As far as I can see, steps 2 and 3 are not 
performed.

As for closing the form tiddler, you can do tid = 
story.findContainingTiddler(form) and then tid = 
tid.getAttribute('tiddler'), this gives you the name of the tiddler 
containing the form. which you then close using story.closeTiddler()...
http://tiddlywikidev.tiddlyspace.com/#story.closeTiddler()

Open your new tiddler using...
http://tiddlywikidev.tiddlyspace.com/#story.displayTiddler()

Tobias.


On Saturday, 2 November 2013 11:54:35 UTC+1, magev958 wrote:
>
> Hi Tobias, I didn't try setting a onsumit on the form before. It works, 
> kind of. It closes the open form-tiddler and opens the specified tiddler. 
> Sadly it does not save the form-value to a new tiddler :(
> I have a working form-TW here: 
> https://dl.dropboxusercontent.com/u/955759/forms.html
>  
> I just want to: (1) save (creating the new tiddler with the new 
> content), close the form and open the newly created tiddler
> or, if that dosen't work (2) clear the form so it empty
>  
> I have created the form to be so easy as to work with 55+ old ladies ;)
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to