cancel
Showing results for 
Search instead for 
Did you mean: 

Remove empty textbox space in Adobe form

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

rakesh_m2
Contributor
0 Kudos

use '==' instead of '='

else try using formcalc using HasValue function.

    

Rakesh