Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Script, Workflow


Level 5

I do a form (test1.xdp) with a Textfield (A) and a CheckBox. When I click on the checkbox, the text appears.

It works on the preview Pdf tab.

But I use this form in a workflow but when I click the box the TextField doesn't appear.

Javascript in the checkbox click event

if(this.rawValue==1){"Le texte est visible");

this.resolveNode("A").presence = "visible";

}else{"Le texte est caché");

this.resolveNode("A").presence = "hidden";


The messageBox work but not the Text does'nt.

Can you explain me why ?

Thank You
2 Replies


Level 5
It works if I save my form in a dynamic pdf.

What is the difference between xdp and pdf. I mean in what cases must I use the xdp form or the pdf form ?

Thank You.


Level 10
The xdp is a description of the form template (in XFA). This xdp file can be interpreted at run time by Form Server and rendered in real time (in fact in turns the XDP into a PDF). This is very useful if you want to manipulate the template before rendering (i. e. resolving fragments, adding templates together etc.). If you save the template as a PDF then the rendering has already been done and you have no ability to manipulate the template before rendering.

This is not to be confused with dynamic and static rendering that you have setup. A dynamic form rendering has the ability to react to the data that is being entered into it (adding subforms, manipulating the presence of objects etc). You can also have the form react to data being merged onto the template (this is true of wither static or dynamic forms). The static or dynamic nature merely describes how the form will react when the user is entering data.

Hope this helps

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now