jquery-validation icon indicating copy to clipboard operation
jquery-validation copied to clipboard

Adding form state

Open allenfuller opened this issue 9 years ago • 0 comments
trafficstars

I'm using this package along with the module pattern defined on TMC (here). My one question: where's the right place to add a reactive variable to handle form state? I want to disable the submit button, but can't seem to find the right place to drop in something like template.inProgressVar.set( true );

This:

Template.login.events({
  'submit form' ( event ) {
    template.inProgressVar.set( true );
    event.preventDefault()
  }
});

does not seem to work...

Thanks!

allenfuller avatar Aug 15 '16 20:08 allenfuller