Skip to content

Commit

Permalink
switch to generating a unique but recognisable email when autofilling…
Browse files Browse the repository at this point in the history
… email
  • Loading branch information
MichaelT372 committed Aug 1, 2024
1 parent fa92b2a commit b844e08
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/engrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Wednesday, July 31, 2024 @ 13:07:52 ET
* Date: Thursday, August 1, 2024 @ 06:43:59 ET
* By: michael
* ENGrid styles: v0.18.18
* ENGrid scripts: v0.18.18
Expand Down
5 changes: 3 additions & 2 deletions dist/engrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Wednesday, July 31, 2024 @ 13:07:52 ET
* Date: Thursday, August 1, 2024 @ 06:43:59 ET
* By: michael
* ENGrid styles: v0.18.18
* ENGrid scripts: v0.18.18
Expand Down Expand Up @@ -21758,7 +21758,8 @@ const options = {

if ([64320].includes(App.getPageID())) {
if (App.getFieldValue('supporter.emailAddress') === '') {
App.setFieldValue('supporter.emailAddress', '[email protected]');
const email = `${App.getFieldValue('supporter.firstName')}${App.getFieldValue('supporter.lastName')}${Date.now()}[email protected]`;
App.setFieldValue('supporter.emailAddress', email);
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion dist/engrid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/engrid.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const options: Options = {
// Optional email field on specific pages
if ([64320].includes(App.getPageID())) {
if (App.getFieldValue('supporter.emailAddress') === '') {
App.setFieldValue('supporter.emailAddress', '[email protected]');
const email = `${App.getFieldValue('supporter.firstName')}${App.getFieldValue('supporter.lastName')}${Date.now()}[email protected]`
App.setFieldValue('supporter.emailAddress', email);
}
}
},
Expand Down

0 comments on commit b844e08

Please sign in to comment.