Acrobat DC Scripting


i new working forms in acrobat, , having hard time figuring part out.
if can me, appreciate it!

 

so have form i've created in acrobat dc.

i have array of feilds "weightobj 1 thru 8:" displayed percentage value using following java script:

 

// custom format script text field 

if (event.value) event.value += "%"; 

// document-level function 

function digonlyks() { 

 

    // in field 

    var val = afmergechange(event); 

 

    // reject entry if digits 

    event.rc = afexactmatch(/\d*/, val); 

 

 

then following custom key strokes:

 

// custom keystroke script 

digonlyks();

 

 

 

this works charm i'd accomplish following:

 

1) limited values in each field not exceed 100%. (0-100)

2) @ point if total of array of values exceeds 100% alert like:

           "the total of individual fields can't exceed 100%"

3) @ completion of array of fields not totaling 100% another

alert warning user total must %100;

 

i hope making since here.....
thanks , have wonderful day!



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"