Feature Request: Ability to set options to tweak each value
I'd like to be able to set a function option that lets me modify each value as it's coming in, or going out:
$("form").formaize({
toData: function(value, options){ return parseInt(value)+1; },
toForm: function(value, options){ return value-1; }
});
- Not sure about names
after - function to call when the job is done.
before - function to call before the job starts
fromNumber - overrides for $.formalize.fn.fromNumber just for this use
skip - list of fields to ignore (deep nested if you like)
pick - function to decide whether a field gets included or not
skipels - jQuery selector of elements to skip (i.e. skipels:".secret")
set - function to set the value in the object to allow people to customise how the object gets built.
NOTE: skipels is a shit name
Wouldn't this be handled by #3 ?
(see my other comments for other option ideas)