Hi everyone, i just wanna put phone number validation into my interface. The field should take only numbers & length should be 10 digits. Can any one help me out.
Discussion posts and replies are publicly visible
Hi Narmada, You can use the below to resolvbe your issue, a!integerField( label: "PhoneNumber", value:local!phoneNumber, saveInto: local!phoneNumber, required: true(), validations:if(len(local!phoneNumber)=10, {},"Enter 10 digits only") ) the local!phoneNumber Is declared in load() and the a!integerField() is using under Form Layout. Hope this will help. Thanks Sahil