Boris Yasen
11/19/2024, 3:23 PMinlineField.defaultValue = '<input type="radio" name="testing_radio" value="testing" onclick="testingFunc(this)">Testing'
form.clientScriptModulePath = '/ClientScript.js';
In client script
function testingFunc(elm){
}
return {testingFunc:testingFunc, pageInit:_pageInit}
When that input button is clicked it shows me testingFunc is not defined error messageNickSuite
11/19/2024, 4:59 PMBoris Yasen
11/19/2024, 6:38 PMBoris Yasen
11/19/2024, 6:38 PMbattk
11/20/2024, 1:24 AM(function () {
function testingFunc(elm) {}
return { testingFunc: testingFunc };
})();
testingFunc();
throw the not defined error messagebattk
11/20/2024, 1:26 AM{
testingFunc: function testingFunc(elm) {}
}
testingFunc();
though it looks less similar to what was originally writtenbattk
11/20/2024, 1:27 AMbattk
11/20/2024, 1:35 AMBoris Yasen
11/20/2024, 10:28 AMform.addButton({
label:'TESTING',
functionName: "testing"
})
form.addField({type:'inlinehtml', ... }).defaultValue = "<button onclick="testing()">TESTING</button>"
I can see in testing function is defined in chrome developer mode? and they are in same scope?battk
11/20/2024, 10:32 AMbattk
11/20/2024, 10:32 AMBoris Yasen
11/20/2024, 10:32 AM