Skip to Content
avatar image
Former Member

Need help with Adobe Forms and Java Script

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 27, 2010 at 08:37 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 27, 2010 at 08:44 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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";

  • avatar image
    Former Member
    Sep 02, 2010 at 12:47 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded