Custom Calculation for two percentage fields


hello

 

right off bat, thank taking time read question. creating form fillable , calculable within adobe x standard. have 2 fields percentages. adobe's percentage standard multiple whatever number put field 100 , make percentage. wrote custom script divide number 100, if want 1% can put 1 in field instead of 0.01. however, have 2 of these fields, , when put 1% in first field , 2% in second field, divides first field 100 again reads 0.01%.

 

this formula i'm using divide value 100:

if(event.value)event.value /=100;

 

this script in both boxes, have labeled v3 , v12. need more specific script? there way keep value of v12 affecting value of v3 , vice versa?

 

please help. :-)

 

thank you,

amanda

you realize acrobat updates calculations when field used in calculation updated. should aware "percentage" format used value of field decimal value, 0.01, , display formatted show decimal percentage, 1%.

 

i learn live way acrobat/reader works, unless want write more javascript.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support