/usr/share/freemedforms/forms/subforms/fortestonly/Text Sample.xml is in freemedforms-emr-resources 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | <?xml version="1.0" encoding="UTF-8"?>
<MedForm>
<name>formSample</name>
<label>Text's example</label>
<type>form</type>
<version>0.1</version>
<cdate>2008-10-16</cdate>
<categorie>samples</categorie>
<script>
{
var object = thisForm.sampleShort;
var str = "";
str = object.name + " has value " + object.value + "\n";
str += "Setting value to \"Bla bla bla\" \n";
object.value = "Bla bla bla";
if ( object.value == "Bla bla bla" )
str += "All is good !!! See the form now !";
else str += "Something is wrong " + object.value;
str += "------------------------\n\n";
object = thisForm.sampleLong;
str += object.name + " has value " + object.value + "\n";
str += "Setting value to \"Bla bla bla\" \n";
object.value = "Bla bla bla";
if ( object.value == "Bla bla bla" )
str += "All is good !!! See the form now !";
else str += "Something is wrong " + object.value;
return str;
}
</script>
<MedForm>
<name>sampleShort</name>
<label>This is a simple scripted shortText sample</label>
<type>shorttext</type>
</MedForm>
<MedForm>
<name>sampleLong</name>
<label>This is a simple scripted longText sample</label>
<type>longtext</type>
</MedForm>
</MedForm>
|