Hello,
I'm trying to create my own TV (a file input) with this code :
<input type="file" id="tv{$tv->id}" name="tv{$tv->id}">
{if $tv->value}{$tv->value}{/if}
<script type="text/javascript">
// <![CDATA[
{literal}
MODx.load({
{/literal}
xtype: 'filefield'
,transform: 'tv{$tv->id}'
,id: 'tv{$tv->id}'
,width: 300
{literal}
,listeners: { 'change': { fn:MODx.fireResourceFormChange, scope:this}}
});
{/literal}
// ]]>
</script>
The field is generated, but when I've selected my file, the save button stays disable. Something is wrong with my listener ?
Thanks !