If your trying to restrict your phone number field to accept only Numbers in visual force page you can use the below simple JavaScript code to achieve this easily.
Java Script Code:
Thanks for visiting..hope this helps you!
Java Script Code:
<script>
function isNumber(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { return false; } }
</script>
<apex:inputfield value="{!c.Phone__c}" id="boPhone" onkeypress="return isNumber(event)"/>
Thanks for visiting..hope this helps you!
972CF3A797
ReplyDeleteTakipçi Satın Al
3D Car Parking Para Kodu
Online Oyunlar
Lords Mobile Promosyon Kodu
Pubg New State Promosyon Kodu