Download and import script into your OS Reactive application. Then attach script to SCREEN or UI under required script property
Then attach script to SCREEN or UI under required script property
Use OsValidator function as mentioned below
#returns <boolean> OsValidator(WidgetId).then(function(result) { // ... your logic here $resolve(); });
Pass widget #id as param to this function. Promise callback will return true or false via argument result.
widget #id
result