From e01ea6e4594932412c5567fbf5a883e88e1c63f7 Mon Sep 17 00:00:00 2001 From: apple Date: Wed, 10 Jul 2019 16:29:12 +0530 Subject: [PATCH] validation required in upload file --- pages/registration.html | 3 ++- script.js | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/registration.html b/pages/registration.html index 30fe58b..c6fbf40 100644 --- a/pages/registration.html +++ b/pages/registration.html @@ -104,6 +104,7 @@
+
Fields marked with "*" are mandatory. @@ -269,7 +270,7 @@ -->
- +
diff --git a/script.js b/script.js index 93d9178..9e4b8d4 100644 --- a/script.js +++ b/script.js @@ -655,7 +655,7 @@ reader.onload = function(readerEvt) { var binaryString = readerEvt.target.result; $scope.base64textString = btoa(binaryString); - console.log("base64textarea",$scope.base64textString) + //console.log("base64textarea",$scope.base64textString) $scope.data.uploadFile = file.name; }; @@ -716,7 +716,12 @@ $scope.submit = function() { - $scope.ticketAmnt = 500; + $scope.fileSelect = false; + if($scope.data.uploadFile == null){ + $scope.fileSelect = true; + }else{ + $scope.fileSelect = false; + $scope.ticketAmnt = 500; // if($scope.tokencheck == false){ // $scope.data.referalToken = null; // } @@ -849,6 +854,8 @@ }, function myError(error) { }); + + } // }) -- 2.0.0