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.