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

Script, Workflow

_jerome_dinnat_
Level 5
Level 5
Hi,



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){

xfa.host.messageBox("Le texte est visible");

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

}else{

xfa.host.messageBox("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
_jerome_dinnat_
Level 5
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.
pguerett
Level 10
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