I’m tryng to substitute html button with <smart-button>.
In my button, which is within a <form> tag, I do, in the onClick, testLogin(this.form), there testLogin is a very simple jsvascript.
function testLogin(f) {
console.log(“testLogin :”+f.username.value+” / “)
urlResponse = “server/licenseTester?username=”+f.username.value;
console.log(“testLogin2 :”+urlResponse)
sendLoginTest(urlResponse);
return true;
};
It works fine with html button.
Doing it with smart-button the variable f in the js is undefined.
What’s wrong ?
Is there an alternative syntax ?
Tks