Hi all,
I have an input field. And I wrote a function to be called with the OnSubmit event. I want it to be such that the user can press the enter key to call OnSubmit and run my function, or can press a Submit button. For the button, I hooked it up to a separate function which takes the value property from the input field and calls the function that should run with the OnSubmit event.
The problem I'm having is that OnSubmit seems to run immediately when the input field appears, even though I...
b21 - InputField.OnSubmit Confusion
I have an input field. And I wrote a function to be called with the OnSubmit event. I want it to be such that the user can press the enter key to call OnSubmit and run my function, or can press a Submit button. For the button, I hooked it up to a separate function which takes the value property from the input field and calls the function that should run with the OnSubmit event.
The problem I'm having is that OnSubmit seems to run immediately when the input field appears, even though I...
b21 - InputField.OnSubmit Confusion