[MOBILE] ask format for javascript in outsystem

this is my javascript code, but when i test it in device they won't work. is there any error in typing?

Hi Erron,

The Javascript statement works as a function with input parameters (e.g., your 'Username') and output parameters (e.g., your 'keluar').

Thus, you should remove the first line of your code (and the last line also) and use the input and output parameters accordingly (try to drag them into the code to see their syntax...) and not use the 'return' keyword.



Your script is never triggered I guess. So remove the first and last line (as mentioned above) or run 'validateForm()' at the end of your script.