Charge Tax on Shipping Using Gravity Forms for WordPress

After figuring out how to charge tax for only one state , I then needed to include the shipping in the taxable amount. When I used the calculated field ( ({EMT Code Membership:30} + {Shipping:28} ) * .07 ) in Gravity Forms, the total would not refresh. I looked in the javascript for Gravity Forms and found the function gformCalculateTotalPrice($form_id). I added this … [Read more...]

AngularJS Filters

Angular lets us use 'filters' to change the data. To add a filter to change the data, we use the pipe symbol (|). Notice the | uppercase after the key in the code below. You can find a list of filters available on the AngularJS site here. You can filter arrays and objects as well: Filters really become cool when you use them with databinding. I can create … [Read more...]

AngularJS ng-repeat

AngularJS allows me to loop through an array with the ng-repeat directive very easily. (The 'Resources' tab will show you the JavaScript and css files I've included and the 'Result' tab will show you the output.) Notice the ng-init initializes the array with a list of languages. ng-repeat="language in languages" will loop through the languages array assigning each … [Read more...]

AngularJS ng-model

I can use the ng-model directive on an input variable to automatically bind the input to the element for display. Notice the ng-init = "myvar = 'Hello World!'" on the div. This initializes the myvar variable. The ng-model="myvar" on the input binds the myvar variable to the input so that whatever is typed in the input field will automatically be bound to that … [Read more...]


I've heard a lot about AngularJS and decided to learn it along with my brushing up on the JavaScript basics. Angular's website says that it is "what HTML would have been, had it been designed for applications." It supposedly helps build one-page web applications or single page applications (SPA's) much better than most other JavaScript libraries and/or frameworks. It was … [Read more...]