question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to change field content before sending form tracking

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alexanderdeancommented, May 25, 2016

Scheduling

1reaction
alexanderdeancommented, Dec 11, 2017

Let’s move this forwards into the current release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Form Field Tracking with Google Tag Manager - MeasureSchool
This is a guide to Form Field Tracking with GTM. Learn how to capture valuable customer data from your website forms ready for......
Read more >
Change field value before submit - javascript - Stack Overflow
It works, but I would like to change it so that the form isn't display changes in the text box before sending. How...
Read more >
Solved: Update Status field from Draft to Submitted after
I want the Status field to default to Draft before submitting the form through Save button. and once you hit the Save button,...
Read more >
Editing Input Fields in a Form - Salesforce Help
To make a field a required field, which means the user must complete the field before submitting the form, select Required Field in...
Read more >
Edit your form fields - HubSpot Knowledge Base
You can create and add a custom checkbox property to your form, then use a workflow to update that property. Contacts who select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found