I have some lookup fields on which validation is being carried out before the form is saved, basically it is checking if dropdown selection is blank or not and if not what is the value.
if (fd.field('BusUnit_x002f_Source').value == 11) works in fd.spRendered but not in fd.spBeforeSave saying no object and therefore validations do not work.
alert(fd.field('BusUnit_x002f_Source').value) works in fd.spRendered... gives the proper value
alert(fd.field('BusUnit_x002f_Source').value) does not work in fd.spBeforeSave... gives undefined
What am I doing wrong? This only happens with lookup fields not with text fields
Thanks in advance