1 Reply Latest reply on Mar 20, 2014 12:26 PM by philmodjunk

    script that is triggered from a check box

    Claire_2

      Title

      script that is triggered from a check box

      Post

           I am using the starter solution for invoices.

           I have differing types of tax to pay per invoice & some aren't always applied, so I've created a yes / no check box field and in a separate field I'd like to calculate a tax of 16% if yes, and no tax if no.

           How can I set up the script to do this?

            

        • 1. Re: script that is triggered from a check box
          philmodjunk

               clicking a check box can trip the OnObjectModify trigger, but you don't really need a script to do this. You can set up a table of related records with the needed tax rates and clicking a check box can cause the record to look up the specified tax rate from the related table. This allows you to change the rate in the future as a simple data entry option without having to modify a script or field calculation.