Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How reference a javascript function in a addButton method ?
This code:
function guardarlosdatos() {
alert ('ok');
}
.....
newForm.addButton('guardar', 'guardar', "guardarlosdatos()");
.....
this code make a error, but the next code work fine:
newForm.addButton('guardar', 'guardar', "alert('ok)");
What happens ?
Thanks,
Leandro.
0