Skip to content

Instantly share code, notes, and snippets.

@jakes2255
Created November 1, 2020 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakes2255/a34b77d127eed756e2c692efad2f6a1e to your computer and use it in GitHub Desktop.
Save jakes2255/a34b77d127eed756e2c692efad2f6a1e to your computer and use it in GitHub Desktop.
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