javascript - Using quickForm with a collection and separate schema at the same time does not seem to work -


i want store time value in seconds in db.

in form, user should able type string (mm:ss). after submission string (mm:ss) should transformed seconds. why schema form validated against differs schema used validate against in backend (right before writing database).

so did supposed here (https://github.com/aldeed/meteor-autoform#autoform-1) , defined 2 schemas, 1 form (with time.type = "string") , 1 attached collection (time.type = number).

in template set both parameters, collection="timeitem" , schema="specialformschema.

in end, form renders html number input field , ignores form schema.

can help? in advance!

the collection , schema not supported together. have pick 1 or other.

try using hooks you're trying do: https://github.com/aldeed/meteor-autoform#callbackshooks


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -