on 06-03-2012 7:36 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use '==' instead of '='
else try using formcalc using HasValue function.
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.