Event Code Fails in Hybrid App

Avatar

Avatar
Validate 25
Level 4
alim92960278
Level 4

Likes

37 likes

Total Posts

103 posts

Correct reply

5 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 4
alim92960278
Level 4

Likes

37 likes

Total Posts

103 posts

Correct reply

5 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
alim92960278
Level 4

13-06-2018

I have setup several rules in DTM for a new app we're releasing. All of them use custom code.I tested them extensively when I had the app loaded on my windows machine's Chrome browser using Ionic.

Now that the app has been built and available in the app store these rules are failing. In some cases I have created test rules that retrieve the value from a single field on a form and these are failing as well.

To validate that a lead form has been populated before I count it as a Lead Submission I retrieve values from all form fields and check their length.

Example:

var FName = document.querySelector('input[ng-reflect-name="firstName"]').value;

This code works when I load the app in my windows browser using ionic but fails in the published app.

Any help would be appreciated.

Ali

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

14-06-2018

Jen Andrews​ - Any thoughts here?