Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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