Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unwanted changes for numeric formatting

aka44356106
Level 4
Level 4

Sir i use this script in ready form event of a Numeric field and its working fine for Ghost test

but numeric field format change from   num{$ z,zz,zz9.99}   to  num{z,zz,zz9}

plz help

this.execEvent("exit");

this.format.picture.value = "null{'" + this.assist.toolTip.value + "'}";

source of script

http://adobelivecycledesignercookbookbybr001.blogspot.com/2013/05/problem-ghost-text-is-common-way-o...

1 Reply
Magus069
Level 10
Level 10

Hi there,

There could be other reasons for this not to work... but I think I know why it behaves like this...

technically if you want to have a num format along with a null format you'd have to assign both formats...

if your format initially look like this:

num{$ z,zzz,zz9.99} and you'd like to add the null format on any event you'd have to add the format along with the num format to ensure not losing any of those...

To have a numeric format along with a null format, you'd have to get it to look like this:

So you could make it look something like the following :

If you assign only null format, it will remove the num format... and vice versa. Always make sure to keep all the formats concatenated with a vertical bar to separate the different formats.

I hope it helps.