Jan 29, 2013, 3:32 PM
Numberfield always validating as not empty?!? Help?!?! Driving me nuts!
I have a beforeedit listener on a grid - so what I am trying to do - is check the value of a numberfield - if empty - allow the grid to be edited - if not, throw an alert and disable editing - I am using the below - no matter what I do - the numberfield allways comes up as not being empty - even when I remove all values (and make certain there are no spaces in it, etc.)
var beforeCellEditHandler = function (e) {
if (App.nfCustomPackagePrice.getValue() !== '') {
alert('If a Custom Package/Override Price has been set, individual item price adjustments are not allowed.');
return false;
}
else {
return true;
}
}