Avatar

Level 1

Hi, I have problem with that.

I`ve done regular button with javascript on click event.

var aSubmitFields = xfa.data.saveXML("pretty");

xfa.host.messageBox(aSubmitFields, "XML", 1, 0);

event.target.submitForm({

  cURL:"http://domain.com/index.php",

  aFields: aSubmitFields,

  cSubmitAs: "XML"

});

or only that

event.target.submitForm({

  cURL:"http://domain.com/index.php",

  cSubmitAs: "XML"

});

and it doesn`t work.

PHP is receiving data but it shows that XML as empty array (messageBox shows data properly).

I`ve tried also submit type button with same script. It`s receiving string but not formated as XML and when I have multiple dynamic rows (adding rows dynamically after pressing "add" button) it shows me only first row.