Highlighted

Script, Workflow

_jerome_dinnat_

27-05-2008

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

Replies

Highlighted

_jerome_dinnat_

27-05-2008

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.
Highlighted

pguerett

27-05-2008

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