Hello All, (vers 5.2 build 5482)
I have the following Javascript code in an OnLoad Add Event. It gets generated into the source code but appears to never get executed.
var ctrl1 = Runner.getControl(pageid, 'spar_id');
var ctrl2 = Runner.getControl(pageid, 'vehc_sparout');
/alert('change occured'); /
ctrl1.on('select', function(e){
ctrl2.addValidation("IsRequired");
});
While trying to debug this code I noticed there was a Javascript error occuring in generated code just preceeding my code.
Error source code => Cntrl.preload('','17');
Error msg = > Object doesn't support this property or method - vehicles_add.php, line 247 character 5
It seems this error is keeping my code from being reached but I don't know how or where to address the error.
Also, the field "spar_id" is a Lookup table selection box. I did see a previous post suggesting there was a problem with applying an OnLoad Javascript code to this type field. Has anyone seen or experienced this before?
A workaround would be helpful as well as I am very frustrated with this problem.
Thanks.