need help with creating a formula for percentages


i creating fillable form subcontractors submit change requests. 1 of sections on form materials. subs charge markup small percentage of actual cost. obviously, both amounts variables. want subs able enter material cost in field 1, markup percentage in field two, , have field 3 calculate dollar amount them. possible? btw, i'm clueless on this, it's first attempt @ adobe form. thanks!!!

add following script in field 3 onfocus.

 

var a=this.getfield("field1").value;

var b=this.getfield("field2").value;

 

var c=a*b/100; (calculation example; include calculation)

 

 

this.getfield("field3").value=c;

 

also please set properties filed 3 mentione below:

 

format                  : number

decimal places     : 2

currency symbols : dollor ($)



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