Expand my Community achievements bar.

How to load xml and assign to a perticular subform

Avatar

Level 7

Hi,

I want to build a functionality in the form that on click on a checkbox I want to papulate items of an xml node(Panel1 or panel2 values from belwo xml) to subforms controls (textfield1 and textfield2).

And when i uncheck the checkbox, it should papulate values from different nodes to this subform.

<?xml version="1.0" encoding="UTF-8"?>

<form1>

   <Panel1>

      <TextField1>Ego ille1</TextField1>

      <TextField2>Si manu vacuas1</TextField2>

   </Panel1>

   <Panel2>

      <TextField1>Ego ille2</TextField1>

      <TextField2>Si manu vacuas2</TextField2>

   </Panel2>

</form1>

binding xml to subform.JPG

How do I write js script to load the xml node and assign to subform (panel1 or panel2).

Please let me knw if you need xdp and xml of this poc.

-

Sunil

0 Replies