I have some form fields that are assigned variable names that start with nField...(Nintex field).
There are some script specific variable used for storing values for a calculation in the script that are not in the form.
The idea is that the user inputs the information in the fields and then clicks a button to get a recommendation based on those choices. There are quite a few rules hat determine what recommendation they get. That recommendation is then shown in a box at the end of the form.
There are no errors reported o the console. Just a page reload.
Can anyone suggest where I am going wrong here? Do I need to insert NWF$ all over the script and if so are there any guides or references of where to put them? I can't seem to find any. I have been trying various combinations but nothing works and it's getting very frustrating now.
Appreciate any help that can be provided.
The JS is configured here:
A button on the form calls the JS function: