Radio Buttons - Taxable/Nontaxable


os - windows 8

software - acrobat x

 

alright, working on form in adobe acrobat x client of mine used receipts customers. regularly jobs businesses tax not issued. instead of creating 2 separate files him going create one, click radio button , have tell form if tax should applied or not. can done? know nothing code or java script , have been hunting internet crazy trying find it. text fields are:

 

sub total: prices added , untaxed total displayed.

tax1: text box holds default of .6 (the state tax in florida)

total: grand total of (sub total + tax1) seen

 

i have no radio buttons or check boxes of yet. want able click "taxable" radio button , have add sub total , tax1 fields displaying in "total" field.

 

i want button when clicked not add sub total , tax1 , display total in "sub total" in "total".

 

"sub total" , "tax1" not displayed in finished file, merely there hold information.

 

thanks in advance can offer this.

 

have day

 

brice

so let's you  have radio-button group called "taxable" 2 items have export values "yes" , "no".

you can use following code custom calculation code total field:

 

var v = number(this.getfield("sub total").value);

var taxable = this.getfield("taxable").value=="yes";

if (taxable)

      v += number(this.getfield("tax1").value);

event.value = v;



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account