Javascript not running properly on adobe mobile products
Hello, I design interactive pdf forms using Prepare Form. The javascripts i write do not run on Ipad and mobile phone. The work on the computer and on the browser. This is troubling because i cannot share these forms if they do not perform as designed across plat forms. The type of scripts i wrote is one that changes the layer visibility, and another is a number counter. I will this particular one for refrence "var day1 = this.getField("Day1").value;
if (day1 === "") {
for (var i = 1; i <= 31; i++) {
var clearField = this.getField("Day" + i);
clearField.value = "";
}
} else {
for (var j = 1; j <= 31; j++) {
var dayField = this.getField("Day" + j);
if (j === 1) {
dayField.value = 1; // Starting value
} else {
var prevField = this.getField("Day" + (j - 1));
dayField.value = parseInt(prevField.value) + 1;
}
}
}
Like i said the issue is not if they work. They do. Just not on mobile. Is there a way or button i can add to encourage the script to run on mobile?