Skip to Content
0
Former Member
May 20, 2010 at 08:36 AM

field validation for numeric values

33 Views

Hi,

There is a cutomization need for field validation on numeric values..

I have a script with me for the field validation butnot able to see the desired out put...

if(hasValue(fieldValue ))

if(fieldValue > 50)

throw doc.createApplicationException(field.getAttributeId(),"should be in bet 50");

The target is ESTIMATED under RFx..

When i am entering 70 it is not throwing any error.. ideally i should throw...

Can anyone suggest any inputs..

Thanks in advance

Regards

Jagmohan