Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Event Code Fails in Hybrid App

Level 5
Level 5

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.


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.


1 Reply