These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Object Palette, Field Tab missing

latarshanc
Registered: Jan 8 2008
Posts: 19
Answered

I need help, for 2 days now I have been trying to find the function in Livecycle that will make zero values invisible. I have found that I can toggle a value to "Allow Zeros" from the Field Tab of the Object Palette. I have looked for this option in several different ways and I am unable to locate a Field Tab under the Object Palette. I have even changed my original field type from Numerical to Decimal and still only get the same tabs to show under the Object Palette.. any advice is greatly appreciated.

LaTarsha Carr

My Product Information:
LiveCycle Designer, Windows
xrum
Registered: Feb 25 2009
Posts: 124
i would just go ahead and put a javascript code in.

if (this.rawValue = "0")
this.rawvalue = " "
latarshanc
Registered: Jan 8 2008
Posts: 19
I'm sorry, I'm a bit too new at the scripting. Can you tell me which dropdown section this code would go in? I tried it in Initialize, and Enter but it didn't work..
xrum
Registered: Feb 25 2009
Posts: 124
initialize should work.

is the user filling out the "0" or is it automatically populated?

if the user types it in, you can try the "exit" event


can you attach a sample form?
latarshanc
Registered: Jan 8 2008
Posts: 19
Ok...I am very intelligent, I swear!..

Where in this forum do you attach a file?
xrum
Registered: Feb 25 2009
Posts: 124
ahh, i dont think this forum has that option, you'd have to use one of the external storage places....http://share.acrobat.com/ or whatever else you prefer.

or email it to me ;)
latarshanc
Registered: Jan 8 2008
Posts: 19
Ok, its uploaded and shared at share.acrobat.com under latarsha carr.
latarshanc
Registered: Jan 8 2008
Posts: 19
were you able to get it?
xrum
Registered: Feb 25 2009
Posts: 124
no
latarshanc
Registered: Jan 8 2008
Posts: 19
can I email it to you directly?
xrum
Registered: Feb 25 2009
Posts: 124
tkacyndra[at]yahoo.com
xrum
Registered: Feb 25 2009
Posts: 124
ok, i got the form, now what do you want to do?
latarshanc
Registered: Jan 8 2008
Posts: 19
The part of the form just below

"Enter Training Amount Below" where there is a 0

and the part for "TOTAL NOW DUE" that shows a 0.

I have some guys who print and handwrite this, so I need it to show no zeros when it's blank. I do not have the Field Tab on my Objects Palette. I am willing to use the code, just don't know where to put it.
xrum
Registered: Feb 25 2009
Posts: 124
i sent you the form, here are the changes

on the TOTAL NOW DUE calculate event.

change the language to javascript


this.rawValue = rowSUBTOTALCONVERSION.infoSUBTOTAL.rawValue + rowINITIALS.infoTRAINING.rawValue - rowNOTEACCOUPON.ACCOUPONAMT.rawValue

if (this.rawValue == "0")
this.rawValue = ""
latarshanc
Registered: Jan 8 2008
Posts: 19
Thank you so much, it works perfectly, you're the best.


I didn't see a change for the "Enter Training Amount Below" field so I took what you did and modified this also to what is below.

It took me a couple of tries but it works, thank you so much!


this.rawValue = ((rowINITIALS.EXTRATRAININGDAYS.rawValue)*500)



if (this.rawValue == "0")
this.rawValue = ""


LaTarsha
jonom
Registered: Jan 31 2008
Posts: 133
It's not the "Field" tab you're looking for - it's the "Patterns" button.

In later versions of LCDesigner there's a button for "allow zero" on the Patterns dialogue, or you can put [b]zero{}[/b] in the Pattern field.