{"action":"created","issue":{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/465","repository_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker","labels_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/465/comments","events_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/465/events","html_url":"https://github.com/snowplow/snowplow-javascript-tracker/issues/465","id":138212775,"number":465,"title":"Add ability to change field content before sending form tracking","user":{"login":"christoph-buente","id":36998,"avatar_url":"https://avatars.githubusercontent.com/u/36998?v=3","gravatar_id":"","url":"https://api.github.com/users/christoph-buente","html_url":"https://github.com/christoph-buente","followers_url":"https://api.github.com/users/christoph-buente/followers","following_url":"https://api.github.com/users/christoph-buente/following{/other_user}","gists_url":"https://api.github.com/users/christoph-buente/gists{/gist_id}","starred_url":"https://api.github.com/users/christoph-buente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christoph-buente/subscriptions","organizations_url":"https://api.github.com/users/christoph-buente/orgs","repos_url":"https://api.github.com/users/christoph-buente/repos","events_url":"https://api.github.com/users/christoph-buente/events{/privacy}","received_events_url":"https://api.github.com/users/christoph-buente/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/milestones/42","html_url":"https://github.com/snowplow/snowplow-javascript-tracker/milestones/Version%202.7.0","labels_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/milestones/42/labels","id":1716530,"number":42,"title":"Version 2.7.0","description":"","creator":{"login":"alexanderdean","id":200511,"avatar_url":"https://avatars.githubusercontent.com/u/200511?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderdean","html_url":"https://github.com/alexanderdean","followers_url":"https://api.github.com/users/alexanderdean/followers","following_url":"https://api.github.com/users/alexanderdean/following{/other_user}","gists_url":"https://api.github.com/users/alexanderdean/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderdean/subscriptions","organizations_url":"https://api.github.com/users/alexanderdean/orgs","repos_url":"https://api.github.com/users/alexanderdean/repos","events_url":"https://api.github.com/users/alexanderdean/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderdean/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":0,"state":"open","created_at":"2016-04-19T09:00:55Z","updated_at":"2016-08-22T07:17:16Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-03-03T15:38:26Z","updated_at":"2016-08-22T17:16:34Z","closed_at":null,"body":"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.\r\n\r\n    var config = {\r\n      forms: {},\r\n      fields: {\r\n        filter: function (field) {\r\n          return field.class == \"email\";\r\n        },\r\n        transform: function(value) {\r\n          return md5(value);\r\n        }\r\n      }\r\n    };\r\n\r\nCheers."},"comment":{"url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/comments/241483492","html_url":"https://github.com/snowplow/snowplow-javascript-tracker/issues/465#issuecomment-241483492","issue_url":"https://api.github.com/repos/snowplow/snowplow-javascript-tracker/issues/465","id":241483492,"user":{"login":"fwahlqvist","id":551815,"avatar_url":"https://avatars.githubusercontent.com/u/551815?v=3","gravatar_id":"","url":"https://api.github.com/users/fwahlqvist","html_url":"https://github.com/fwahlqvist","followers_url":"https://api.github.com/users/fwahlqvist/followers","following_url":"https://api.github.com/users/fwahlqvist/following{/other_user}","gists_url":"https://api.github.com/users/fwahlqvist/gists{/gist_id}","starred_url":"https://api.github.com/users/fwahlqvist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwahlqvist/subscriptions","organizations_url":"https://api.github.com/users/fwahlqvist/orgs","repos_url":"https://api.github.com/users/fwahlqvist/repos","events_url":"https://api.github.com/users/fwahlqvist/events{/privacy}","received_events_url":"https://api.github.com/users/fwahlqvist/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T17:16:34Z","updated_at":"2016-08-22T17:16:34Z","body":"If it would be possible to add a salt and select the transform method  it would be even better (SHA128/256 etc) "}}
{"actor":{"display_login":"fwahlqvist"}}