Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2021 05:59 AM
Hello everyone
I've been trying to get a UI script working without not much of a success.
SN's documentation in this regards do not cover all aspects of its potential usage. I've gone through all forum posts here, including: this and many others
Can anyone suggest what am I doing wrong ?
UI Script
<scope> = <scope> || {};
<scope>.<name>= (function initializeLibrary(g_form) {
var _localVariable = '';
function _localFunction() {
//do something
}
function _localFunction2() {
//do something
}
var functionToCall= function doProcessChanges(fieldName) {
//call local functions
//call AJAX
};
return {
processPhasingChanges: functionToCall
};
})(g_form);
onLoad Client Script order - 100
ScriptLoader.getScripts('<scope>.<name>.jsdbx');
onChange Client Script: order - 200
tried all variations, such as
- <scope>.<name>.processPhasingChanges
- processPhasingChanges
- <name>.processPhasingChanges
None seems to work. Any help is much appreciated
Solved! Go to Solution.
Labels: