Skip to content

Instantly share code, notes, and snippets.

View batkinson's full-sized avatar

Brent Atkinson batkinson

  • Garmin International
  • Portland, Maine, USA
View GitHub Profile

Remi created this for me to aid in creating a form with many images to test with pdf performance issues. I had manually created a form since the problem initially seemed linked to images, but when I went to purchase an iPad and test it performed better than what Joachim had reported (~20 mins vs my <1 min).

To use this, you just need to:

  • Enable the device to download the form definition from a zegeba endpoint
  • Open the form on the device and provide an answer for the media question
  • Use the supplied function in the js file to repeat the answer via console
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Malaria Indicator Survey</h:title>
<model>
<itext>
<translation lang="Español">
<text id="/data/WhatHappenedToNet/2:label">
<value>La tela fue destrozada accident</value>
</text>