cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with Adobe Forms and Java Script

Former Member
0 Kudos

Hi,

We recently upgraded our system to Enhacement Pack 4. One of our Adobe form has following Java script code:

if ( this.rawValue == null || this.rawValue == " " || TXT_HDR_0010.rawValue == "" ) {

this.presence = "hidden";

}else{

this.presence = "visible";

}

prior to EhP4 this code was working fine. Now after EhP4 it is printing a blank line that is resulting in extra page. So instead of one page output now we have 2 pages.

Thanks in advance for your help.

Regards

Jitendra

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I found the variable because of which this issue is surfacing. I do not know much about Adobe Forms. Developer is using Text Type as TEXT MODULE instead of actual variable. As soon as we use TEXT Module above code fails to check if the field is empty or not. Any thought on how to resolve this. In my example I have a field RETURN TEXT which is assigned to another field with TEXT TYPE as TEXT Module.

chintan_virani
Active Contributor
0 Kudos

Can you let us know where exactly the code is wriiten i.e. form:ready event of main subform or initialize event of TXT_HDR_0010 field?

Former Member
0 Kudos

Try this in the Change Event or the Exit Event.

Exit Event will Trigger if the Focus is lost from the Field.

IS_LFA1.PAGE1.SUB_SECMAR.presence = "visible";

OttoGold
Active Contributor
0 Kudos

Hello,

TXT_HDR_0010.rawValue == "" seems weird to me, are you sure about this one? Is this a correct field/ node address?

And are you sure the blank space is caused by this script?

By the way, there is a warnings tab in LCD, where you can see the errors (at least in my LCD 8.1). in LCD 8.1 you can also use the syntax check.

Regards Otto