How do I calculate form fields?


hi everyone,

 

how calculate number of form fields? can see below, the shipping field; every 1 12 items, number should calculate r35. so, if there 13 24 items should calculate r70, , on. how calculate in field properties? what formula this?

 

this must based on quantity of items number , not based on quantity fields number.

 

2016-11-21 01_56_59-my body guru order form_161121.pdf - adobe acrobat pro dc.png

 

thank you.

!

so regardless of values entered in qty fields, if more 12 of them filled in anything, value should 70, otherwise it's 35 (and i'm assuming 0 if no fields filled in)?


if so, , assuming names of these fields qty1 qty24, can use code custom calculation script of shipping total field:

 

var total = 0; (var i=1; i<=24; i++) {     if (this.getfield("qty"+i).valueasstring!="") total++; } if (total==0) event.value = 0; else if (total<=12) event.value = 35; else event.value = 70; 


More discussions in Acrobat Reader


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working