529
Views
2
Comments
Call JavaScript function and passing parameters using button
Question

Hi All,
I need to call a JavaScript Function and passing parameters to it once click on a button, can any one help me with this and descripe how to do it step by step
2016-04-21 20-09-55
J.
 
MVP
Not really an outsystems issue, so you can google your question...

https://stackoverflow.com/questions/9643311/pass-string-parameter-in-an-onclick-function

2012-10-08 11-59-27
Guilherme Pereira
Staff
Hi Ahmad,

The way to do it in OutSystems would be to use the button's extended properties and specify the javascript call on the onclick.

So if you had for instance a javascript function called myFunc which received two params



Your button would be something like:



Hope this helps
Guilherme
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.