Documentation

You can execute JavaScript from any control in a Form screen if there is a Hybrid Browser control anywhere in the Form screen. To execute the JavaScript, insert the execJS() function in the script for a control event. The execJS() function can execute any JavaScript code, or can call a JavaScript function defined in the Hybrid Browser control. 

Shown below is the syntax of the execJS() function:

PropertyValueNotes
Syntax

thisview:getControl("hbcName"):execJS('JavaScriptFunction()')

hbcName - The name of the Hybrid Browser control.

JavaScriptFunction() - The JS method defined in the HTML

Consideration 
  • The API can return a value in iOS but not on Android.
  • The LUA hook for executing JavaScript is available for all controls but it requires a Hybrid Browser control context to execute, meaning there must be at least one Hybrid Browser control in Form screen of the control.
                                               
Your Rating: Results: PatheticBadOKGoodOutstanding! 2 rates