Skip to content

Add ability to change field content before sending form tracking #465

Description

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions