Skip to Content
avatar image
Former Member

Remove empty textbox space in Adobe form

Hi,

I am using standard text in my Adobe form to display different paragraph in my form. For the display of paragraph I am using conditions when the condition fails the paragraph is not getting displayed but an empty space of one line is displayed. I dont want this empty space between two paragraph.

For the for different paragraphs P1,P2,P3,P4 I am using a include text with a condition FLAG  = X for the display of each paragraph. The condition works fine but when the FLAG ne X for any of the paragraph then this is not displayed but an empty space comes in the form layout. These Paragraph's textbox is in a Subform wherein it is Flowed. To overcome this issue I used Javascript code

 

if ( this.rawValue = null ) {

SECOND_PARA.presence = "hidden";

}

also tried if (this.isNull) condition

but this didnt worked, there is come problem with is condition as when I only use SECOND_PARA.presence = "hidden"; this thides the textbox and removes space but when I use if condition it doesnt work.

Thanks

Shweta

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 04, 2012 at 02:20 PM

    use '==' instead of '='

    else try using formcalc using HasValue function.

        

    Rakesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 06, 2012 at 02:03 AM

    Hi Shweta,

    Rakesh is right, your comparison operator should be ==

    Javascript syntax for your reference

    http://www.w3schools.com/js/js_comparisons.asp

    alternatively, you can use formcalc.

    You can refer this document for Formcalc syntax and sample coding

    help.adobe.com/en_US/livecycle/es/FormCalc.pdf

    Make sure you choose "Client" for execution.

    regards,

    Xiang Li

    Add comment
    10|10000 characters needed characters exceeded