I figured out a method of making it work. I was originally trying to put the code in the radio boxes because I am used to doing code in Excel. I am very inexperienced with programming. I got it to work by putting the code in the "combo box properties." The hardest part was finding the syntax. I really wish I could find a syntax cheat sheet for foxit's javascript.