cancel
Showing results for 
Search instead for 
Did you mean: 

adobe field problem

Former Member
0 Kudos

if (LV_S.rawValue==null||LV_S.rawValue=="")

{

LV_S_VAL.presence = "hidden";

LV_S_TEXT.presence = "hidden";

else {

LV_S_VAL.presence = "visible";

LV_S_TEXT.presence = "visible";

}

i am using this java script code to hide field , it is not working , can anyone tel me what is the problem in this code.

Accepted Solutions (1)

Accepted Solutions (1)

former_member189058
Active Contributor
0 Kudos

Hi Ankesh,

Alternately, try this pice of code in formCalc in the exit event of LV_S field.


if ($.isNull  | $.rawValue == "") then

   xfa.form.form1...LV_S_VAL.presence = "hidden"
   xfa.form.form1...LV_S_TEXT.presence = "hidden"

endif

LV_S_VAL and LV_S_TEXT are two fields having default presence visible in the Cell tab of the object palette.

In case you donot want the two fields to be printed, add


  xfa.form.form1...LV_S_VAL.relevant = "-print"
  xfa.form.form1...LV_S_TEXT.relevant = "-print"

Regards,

Reema.

Edited by: Reema Shahbazkar on Sep 10, 2008 7:47 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

In your Adobe lifecycle Designer, open your form,

Goto, File --> Form Properties,

Goto the Defaults tab,

Select "Dynamic PDF" for the XDP Preview Format:

Click OK.

This setting will now allow dynamicity in your Form, when you view it in PDF Preview tab.

Regards,

Arafat

Former Member
0 Kudos

IT IS ALREADY DYNAMIC ASSIGNED THEIR

chintan_virani
Active Contributor
0 Kudos

Ankesh,

Where have you placed this code? Try this in the exit event of LV_S field and this might already be there but just see if the language has been set to JavaScript or not....

Chintan

Former Member
0 Kudos

Hi Ankesh,

You just need to place this code in the doModifyview method of the view that contains Interactive Form UI element:


    IWDInteractiveForm Form = (IWDInteractiveForm)view.getElement("NAME OF THE INTERACTIVE FORM UI ELEMENT");
    Form.setDynamicPDF(true);

Hope this helps

Thanks

Amita

Former Member
0 Kudos

Hi Ankesh,

You need to enable the Interactive form Dynamic property for this to work. Have you done so?

Regards,

Arafat