function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Need trigger for text field to accept only numbers

i created a custom Text filed (Pincode__c) , I need to write a trigger for this field to accept only numbers
Any reason you need a Trigger for this,you can have a number field in place of Text field. 
Hi Mahi, The following two posts have two different scenario's and solutions hope they will help you