jonjamz / blaze-forms

Dead easy reactive forms with validation (Meteor).
https://atmospherejs.com/templates/forms
MIT License
113 stars 11 forks source link

Getting form data from action helper #102

Open fxv opened 8 years ago

fxv commented 8 years ago

Hi, In the API reference it says:

The Action Function runs when the form is submitted. Data from the form fields is available directly from this.

I'm using space:template-controller where this inside the handlers is always a reference to the Template.instance(). How can I get the form data in this case?

fxv commented 8 years ago

I should have mentioned I can get the data from els from every element. Is that the best solution?

bjornlll commented 8 years ago

I've got the same issue. If it helps, here's my list of installed packages

meteor-base             # Packages every Meteor app needs to have
mobile-experience       # Packages for a great mobile UX
mongo                   # The database Meteor supports right now
blaze-html-templates    # Compile .html files into Meteor Blaze views
reactive-var            # Reactive variable for tracker
jquery                  # Helpful client-side library
tracker                 # Meteor's client-side reactive programming library

standard-minifier-css   # CSS minifier run for production mode
standard-minifier-js    # JS minifier run for production mode
es5-shim                # ECMAScript 5 compatibility for older browsers.
ecmascript              # Enable ECMAScript2015+ syntax in app code

autopublish             # Publish all data to the clients (for prototyping)
insecure                # Allow all DB writes from clients (for prototyping)

#
# Shared across admin and flow

semantic:ui
flemay:less-autoprefixer
kadira:flow-router
useraccounts:core
accounts-base
kadira:blaze-layout
accounts-password
useraccounts:semantic-ui
arillo:flow-router-helpers
alanning:roles
zimme:active-route
aldeed:collection2

#
# Used by flow app

dburles:google-maps

#
# Used in admin app

templates:forms
aldeed:simple-schema
bjornlll commented 8 years ago

@fxv did you manage to find a solution to this?