Event Code Fails in Hybrid App

alim92960278

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)