Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Move Data Between 2 xfaForms

Avatar

Former Community Member
Assume I have process with 2 xfaForm variables, Form A (a PDF) and Form B (a PDF). A user fills out Form A. I want to populate values in Form B with the data from Form A.



When I try to assign a value (using SetValue) directly from form A to form B, it doesn't seem to work. That is ...



Location: /process_data/form_B/object/data/xdp/datasets/data/FormB/Value1

Expression: /process_data/form_A/object/data/xdp/datasets/data/FormA/Value1



It does work however when I use a temporary XML variable, say xml_data. That is, I move the data from Form A to xml_data, and the move the data from xml_data to Form B.



Why would this be? What is wrong with directly moving data between my xfaForms? What am I missing?
3 Replies

Avatar

Level 10
You should be able to go from Form B to Form A directly. You must be doing something wrong.



Jasmin

Avatar

Former Community Member
Hi Brad Steele,



I'm new in ES, n have experienced the same problem that u had sometime ago of trying to pass values from FormA to FormB, can you please help me out on this one

Avatar

Level 10
Try to use a SetValue and equal the data node of the two form variable. Somehting like:



/process_data/form_B/object/data = /process_data/form_A/object/data



Jasmin