Avatar

Level 1

Hi,

I have this simple xdp file:

<?xml version='1.0' encoding='UTF-8'?>
<?xfa generator='AdobeDesigner_V7.0' APIVersion='2.2.4333.0'?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
<template xmlns="http://www.xfa.org/schema/xfa-template/3.1/">
<subform >
<event activity="ready">
<script contentType="application/x-javascript">
   app.alert({cMsg: "yes!", cTitle: "i am showing"});
</script>
</event>
</subform>
</template>
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:data>
<form>
<txtName>lll1</txtName>
<txtAddress>sss1</txtAddress>
</form>
</xfa:data>
</xfa:datasets>
<pdf href="smalltest.pdf" xmlns="http://ns.adobe.com/xdp/pdf/">
</pdf>
</xdp:xdp>

I would expect that the javascript is executed and the message is displayed. However that is not the case. I am trying to add some javascript code in there in order to put all fields to readonly. What am I doing wrong ?