The script doesn't want to grab field value it seems. I have shown it to others and they can't see anything wrong with it, but their java experience is only slightly more than mine. Any help would be much appreciated.
Open the JS console and see that you have errors in your code.
Your function (Pay) is not returning any values. Also, it's not a good idea
to have a variable in a function with the same name as the function itself.
More errors in your code:
- You're not accessing the value properties of the fields.
- You're trying to access non-existing elements in the array (JS arrays are 0-based).
thanks for the help. It worked great.