When i enable form tracking, i would like to be able not only to filter the fields, but als provide a function to change the field value programmatically. For example find fields with class email and transform it into an md5 hash. Of course the transform should only be executed if whitelist and filter let the respective field through.
var config = {
forms: {},
fields: {
filter: function (field) {
return field.class == "email";
},
transform: function(value) {
return md5(value);
}
}
};
Cheers.
When i enable form tracking, i would like to be able not only to filter the fields, but als provide a function to change the field value programmatically. For example find fields with class email and transform it into an md5 hash. Of course the transform should only be executed if whitelist and filter let the respective field through.
Cheers.