You need to sign in to do that
Don't have an account?
Hari nadh babu Eluru
string must be 6 digits and string must be numeric only
Take a string type of variable
string pincode = '500038';
- Pincode must be exactly 6 digits, if the no of digits not equal to 6 then print "Pincode must be 6 digits"
- Pincode must be numeric only, if user enters alphabets then show error message "Pincode must be numeric only"
Try this:
I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too.
Thanks and Regards,
Suraj Tripathi
All Answers
Can you confirm if you need them as validation rules or in apex trigger ?
Thanks,
Try Below Code Please Mark it As Best Answer If It Helps
ThankYou
Please try the below trigger logic. Replace the object and field as required.
If this solution helps, Please mark it as best answer.
Thanks,
Try this:
I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too.
Thanks and Regards,
Suraj Tripathi
Try Below Code Please Mark it As Best Answer If It Helps
ThankYou