Unwanted changes for numeric formatting

Avatar

Avatar
Validate 10
Level 2
aka44356106
Level 2

Likes

10 likes

Total Posts

56 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
aka44356106
Level 2

Likes

10 likes

Total Posts

56 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
aka44356106
Level 2

21-09-2019

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...

Replies

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

01-10-2019

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.