Created
November 1, 2020 13:56
-
-
Save jakes2255/a34b77d127eed756e2c692efad2f6a1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onMobNumberChange: function (oEvent) { | |
var input = oEvent.getSource(), | |
mobNum = input.getValue(); | |
if(mobNum.length > 10){ | |
MessageToast.show("Upto 10 digits only!"); | |
input.setValue(oEvent.getParameters().value.substr(0,10).trim()); | |
} | |
else{ | |
input.setValue(mobNum); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment