Numberfield always validating as not empty?!? Help?!?! Driving me nuts!

  1. #1

    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;
                }
     
            }
  2. #2
    got it by checking for null

Similar Threads

  1. [CLOSED] NumberField zero empty text and value
    By kemalyigit in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 23, 2012, 11:30 AM
  2. [CLOSED] NumberField empty value (-1.7976931348623157e+308)
    By caha76 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 25, 2011, 9:55 PM
  3. Replies: 6
    Last Post: Dec 03, 2010, 5:42 PM
  4. Empty NumberField
    By yyyhxm1 in forum 1.x Help
    Replies: 3
    Last Post: Aug 23, 2010, 2:50 AM
  5. [CLOSED] Empty NumberField
    By armadalabs in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 20, 2010, 8:42 AM

Posting Permissions