Functions and forms

Hi, I have done an application with many forms.
I just need to confirm, can I use the same function on each form (same name) or must each function name be unique in all cases i.e form 1 function a() cannot be used again on form 2 as function a() but must be name function b()

If you define a function in Form1, that same function will be global. It will be available on all forms.

OK, thank you.
I am now passing a parameter to the function from each different page after I have completed the capturing and calculations on each page to the function in question (single function now) by means of localstorage variable.
Not sure if this is good practise approach but it is working fine.

There is nothing wrong with what you are doing.

Best practice is to put code which is used by multiple forms in the Global code.