Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adobeforms field format pattern for setting decimal places

santosh51
Product and Topic Expert
Product and Topic Expert
0 Likes
1,938

Hello Frds

I have a requirement to display the Amount from the table items as per the currency decimal places.

I have added the Javascript for assigning the pattern at runtime but I see that its working only on the first row of the table.

I tried writing java script inside events like initialize, calculate, enter, exit but it doesn't work.

Help Please.

3 REPLIES 3
Read only

santosh51
Product and Topic Expert
Product and Topic Expert
0 Likes
1,542

Hello Frds,

This topic is still open. I belive some minor logic/setting is missing.

Please suggest.

Read only

0 Likes
1,542

Hi Santosh,

Could u please try the below java script once for that  amount field in Form ready.and comment it in all other areas(Initilization,calculation etc.)

Please check once the path of the field is provided in the java script is correct..

if ((this,resolveNode("$").rawvalue == "0"))

{

data.layout.Subform1.GV_AMT.foramt.picture.value = "zzz,zzz,zzz,zzz,zzz,zzz,zzz,zzz,zz9s";

}

else

{

data.layout.Subform1.GV_AMT.foramt.picture.value = "zzz,zzz,zzz,zzz,zzz,zzz,zzz,zzz,zz9.9s";

}


Regards,

Suneel.Uggina.

Read only

santosh51
Product and Topic Expert
Product and Topic Expert
0 Likes
1,542

Hi Suneel

Its not working.

Regards

Santosh