|
|
@@ -562,9 +562,16 @@
|
|
|
if( check_len_val.length<min_length)
|
|
|
{
|
|
|
self.cancommit = false;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
NSString* mfield =[NSString stringWithFormat:@"%d. %@ is too short",fields.count+1,itemjson[@"aname"]];
|
|
|
|
|
|
|
|
|
+ if(check_len_val.length==0 &&[[itemjson valueForKey:@"required"] isEqualToString: @"true"])
|
|
|
+ mfield =[NSString stringWithFormat:@"%d. %@ is missing",fields.count+1,itemjson[@"aname"]];
|
|
|
+
|
|
|
+
|
|
|
[fields addObject:mfield];
|
|
|
|
|
|
|