javascript - How to redirect to a new page using auto form and iron router? -
so have built auto form using autoform. want redirect new page displaying new templates after form has been submitted. how can ??
here html code: ultimatum game
<body> <div class="container"> <div class="navbar"><h1>the ultimatum game</h1></div> {{> player}} </div> </body> <template name="player"> {{> quickform collection="playerslist" id="insertlist" type="insert" }} </template>
how redirect new q/a page after user submits it.
make redirect in event handler:
template.player.events({ 'submit form': function(e, t) { router.go('newpath'); }, });
Comments
Post a Comment