on 04-10-2008 10:13 AM
Hey,
I have an input field from the type decimal. When the value, which is coming from the interface,
is 0, it shows the 0 in the field. Is it possible to supress the output of the field, when it is 0?
Can you please show me how to do that? I have just done a few changes in Adobe interactive forms,
so please describe in a way for newbies.
Thank you!
Reward points guaranteed
Hi Michael,
I am assuming the Hierarchy like this:
BodyPage
--> Subform
--> Decimal field
You can write following code in the "form:ready" event of the bodypage:
if ( $.Subform.Decimalfield == 0 ) then
$.Subform.Decimalfield = ""
endif
Hope this helps,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have my "page1" and under that a table node.
Then the table body and then the field called PRICE.
Like this:
page1->table->tablebody->PRICE
And I have done this:
On the table node at form ready:
if ($.tablebody.PRICE == 0) then
$.tablebody.PRICE = ""
endif
On the tablebody node at form ready:
if ($.PRICE == 0) then
$.PRICE = ""
endif
But both didn´t do something...
Do you know what´s wrong?
Thank you!
Sorry,
Code shoyuld be:
if ($.tablebody.PRICE == 0) then
$.tablebody.PRICE.rawValue = ""
endif
and check the condition is getting satisfied or not by putting messagebox in it.
if ($.tablebody.PRICE == 0) then
$host.messagebox("In the if")
$.tablebody.PRICE.rawValue = ""
endif
if it is not coming in if then compare it with 0.00.
Hope this helps
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.