diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js
index 795bcb010..2f70037cd 100644
--- a/airtime_mvc/public/js/airtime/library/library.js
+++ b/airtime_mvc/public/js/airtime/library/library.js
@@ -1089,7 +1089,7 @@ function validateAdvancedSearch(divs) {
if (!valid) allValid = false;
}
- addRemoveValidationIcons(valid, $(field));
+ addRemoveValidationIcons(valid, $(field), searchTermType);
/* Empty fields should not have valid/invalid indicator
* Range values are considered valid even if only the
@@ -1114,9 +1114,20 @@ function validateAdvancedSearch(divs) {
return allValid;
}
-function addRemoveValidationIcons(valid, field) {
- var validIndicator = "",
- invalidIndicator = "";
+function addRemoveValidationIcons(valid, field, searchTermType) {
+ var title = '';
+ if (searchTermType === 'i') {
+ title = 'Input must be a positive number';
+ } else if (searchTermType === 'n') {
+ title = 'Input must be a number';
+ } else if (searchTermType === 't') {
+ title = 'Input must be in the format: yyyy-mm-dd';
+ } else if (searchTermType === 'l') {
+ title = 'Input must be in the format: hh:mm:ss.t';
+ }
+
+ var validIndicator = " ",
+ invalidIndicator = " ";
if (valid) {
if (!field.closest('div').children(':last-child').hasClass('checked-icon')) {