I am trying to validate some fields server side before actual submission I was doing this to set the variable
when I check the console, my variable is set appropriately and shows as intended, but when I go like this after setting it
The function thinks the variable is [htmlInputElement]
I dont understand why the output shows fine but the script function wont take it in. Is there something extra I need to do to pass this form element into a different function?