Demos
Where to add JavaScript
These JavaScript demos simply display a standard browser an alert message telling you where they're from.
 One more way to add JavaScript is available in Silk UI.
JS in Module
Calls the JavaScript defined in the global modules's (or e-space's) corresponding property.
JS in external file
Calls the JavaScript defined in an external file added to Data/Resources.
JS in Web Screen
Calls the JavaScript defined in this Web Screen's corresponding property.
JS in RunJavaScript action
Calls the JavaScript defined in the RunJavaScript action.
JS in Web Block
Calls the JavaScript defined in JSWebBlock's corresponding property. This Web Block is included in this screen.
JS in Expression
Calls the JavaScript defined in an Expression widget.
Extended properties & jQuery
Manipulate DOM elements using
"...document.getElementById('" + <Widget Name>.Id + "')"
onClick and submit
Sends text to a screen action. The screen action responds with a feedback message.
Form onSubmit doesn't work
The Form widget translates to an HTML, Div and an onSubmit will not have any effect. In this demo, clicking "Send" just sends the typed text to a screen action without onSubmit being able to prevent it.
onKeyUp & onBlur
Repeats the text you type below on each corresponding JavaScript event.
OnKeyUp: 
OnBlur: 
onKeyPress
Displays a standard browser alert message with the text you type, when you press Enter.
Silk UI
JS in Script function
Calls the JavaScript defined in an Expression widget which uses Silk UI's Script function.
js_addClass function
Calls Silk UI's js_addClass function to add the 'ButtonDefault' class to this same button
JS in Ready function
Calls the JavaScript defined in an Expression widget which uses Silk UI's Ready function.This is triggered automatically when the page loads and the DOM is ready and hides the button underneath this text
js_show function
Calls Silk UI's js_show function to show the button of the Ready function demo
JS in JS widget
Calls the JavaScript defined in an Expression widget which uses Silk UI's Script function.
External_URL
JavaScript implementation for form validation click here....
JavaScript for Web
JavaScript for Web
142
JavaScriptforWeb
142
en-US
/JavaScriptforWeb/
https://sbsam.outsystemscloud.com/JavaScriptforWebTask/JSFormValidation.aspx?_ts=636595612504200900
Silk UI Framework Simulation Device
Resize the window to preview the page in target devices.
Open the settings to change the simulation device options.
Click here to see your activities