/usr/share/freemedforms/forms/subforms/fortestonly/Combo Sample.xml is in freemedforms-emr-resources 0.9.4-1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<MedForm>
<name>formSample</name>
<label>ComboBox' example</label>
<type>form</type>
<version>0.1</version>
<cdate>2008-10-16</cdate>
<categorie>samples</categorie>
<script>
{
var object = thisForm.sampleCombo;
var str = "";
str = object.name + " has value " + object.value + "\n";
str += "Setting value to \"The first value\" \n";
object.value = "The first value";
if ( object.value == "The first value" )
str += "All is good !!! See the form now !";
else str += "Something is wrong " + object.value;
str += "\nActual Id is " + object.id + " giving value " + object.value;
object.id = 2;
str += "\nThis time value is : " + object.value;
return str;
}
</script>
<MedForm>
<name>sampleCombo</name>
<label>This a ComboBox</label>
<type>combo</type>
<possiblevalues id="0">The first value</possiblevalues>
<possiblevalues id="1">The second value</possiblevalues>
<possiblevalues id="2">The third value</possiblevalues>
<interpretvalues id="0">The first interpreted value</interpretvalues>
<interpretvalues id="1">The second interpreted value</interpretvalues>
<interpretvalues id="2">The third interpreted value</interpretvalues>
<numericalvalues id="0">1</numericalvalues>
<numericalvalues id="1">2</numericalvalues>
<numericalvalues id="1">4</numericalvalues>
</MedForm>
</MedForm>
|