Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

URGENT:Retrieve output XML generated on click of button

Avatar

Level 1

Hi

I have a button which opens a pop up when clicked on.

I need to know the output XML generated before the pop up opens.

Please help. This is very urgent.

1 Reply

Avatar

Former Community Member

This code will give the data xml.

Write it in the click event

   var vv = xfa.record;
   var ss = vv.saveXML('pretty');

  app.alert(ss);

Is this what you are looking for?

If you are looking for the form xml, then write var ss = xfa.form.saveXML('pretty')

Hope this helps.

kc