Skip to Content
avatar image
Former Member

Remove empty textbox space in Adobe form


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.



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.



    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

    alternatively, you can use formcalc.

    You can refer this document for Formcalc syntax and sample coding

    Make sure you choose "Client" for execution.


    Xiang Li

    Add comment
    10|10000 characters needed characters exceeded