cancel
Showing results for 
Search instead for 
Did you mean: 

Edit XML before submit

Former Member
0 Kudos

I have a submit button, clicking on it sends XML to an email address.

XML has this :

<OBSERVATION_CODE>

- <DATA xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup">

<ATWRT>zz</ATWRT>

<ATWTB>By zzzzzz (CAWS/MWSS</ATWTB>

</OBSERVATION_CODE>

I want to remove <OBSERVATION_CODE> and everything belongs to it.

Is there a way to edit xml before submit?

Accepted Solutions (1)

Accepted Solutions (1)

barca23
Explorer
0 Kudos

Hello Rifai,

My XML file has the following structure:

<ZZ_CM_FORM01>

<HEADER>

<ORDER_NR>1000</ORDER_NR>

.......

</HEADER>

</ZZ_CM_FORM01>

Use the following javascript:

var oNode = xfa.resolveNode("xfa.record.HEADER");

xfa.record.nodes.remove(oNode);

Kind Regards,

Pelaez Lopez Philippe

Former Member
0 Kudos

it works.

Thanks to Philippe.

Answers (0)