title: Moving subforms in standard PDF
body: <p>I am trying to move subforms in a standard pdf file (not a dynamic XML). I have an old copy of LiveCycle (ES2) and have produced the following code</p>
  
  <pre><code>xfa.host.setFocus(clearArrows);
  
  var gridX = xfa.layout.x(gridPICK); 
  var gridY = xfa.layout.y(gridPICK); 
  var gridW = xfa.layout.w(gridPICK);
  var gridH = xfa.layout.h(gridPICK);
  
  var markerDim = 0;
  
  var mouseX = event.target.mouseX;
  var newX = (mouseX + "points").toString(); 
  var mouseY = xfa.layout.h(Page3) - event.target.mouseY;
  var newY = (mouseY + "points").toString(); 
  
  for (var i = 0; i &lt; 10; i++){
      var indicatorObject = xfa.resolveNode("Indicator[" + i.toString() +     "]");
      var indicatorX = xfa.layout.x(indicatorObject);
      if (indicatorX &lt; gridX) {
          var pointIndicator = indicatorObject;
          pointIndicator.presence = "visible"; 
          xfa.host.setFocus(pointIndicator.Description);
          xfa.host.openList("Indicator[" + i.toString() + "].Description");
  
          i = 10;
      }
  
  }
  
  
  
  if (mouseX &lt;= gridX + markerDim)
  {
      pointIndicator.x = (gridX + markerDim + "points").toString(); 
  }
  else if (mouseX &gt;= gridX + gridW - markerDim)
  {
      pointIndicator.x = (gridX + gridW - markerDim + "points").toString();  
  }
  else
  {
      pointIndicator.x = newX; 
  } 
  
  if (mouseY &gt;= gridY + gridH - markerDim)
  {
      pointIndicator.y = (gridY + gridH - markerDim + "points").toString();  
  }
  else if (mouseY &lt;= gridY + markerDim)
  {
      pointIndicator.y = (gridY + markerDim + "points").toString(); 
  }
  else
  {
      pointIndicator.y = newY;
  }  
  </code></pre>
  
  <p>This works fine if I extend the features and use it on a PC or mac however if I try to use it on an ipad it does not work. Essentially this code is placed on the click event of a large button in a grid square.</p>
  
  <p>Any help would be greatly appreciated.</p>