Set validation error in phone number from skuid page in field editor ?

  • 1
  • Question
  • Updated 1 year ago
  • Answered
I am trying to set phone number validation , this field in not able to enter any character , text .
Show error "correct input"
Photo of Rajesh Kumar

Rajesh Kumar

  • 738 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Rajesh,

You've probably considered this, but one way to do what you want is through a Salesforce validation rule. The only downside is that you'll only see the error after the user saves. If you want to validate the number before the save, you have a few options. Check out this post to see how you can use a custom field renderer to notify your users of an error right after they edit the field; I think it might be just what you want. You could also consider using the jQuery mask plugin as discussed hereThis community post also discusses custom field renderers for phone numbers, although I think it focuses on cleaning up the number entered.
Photo of Rajesh Kumar

Rajesh Kumar

  • 738 Points 500 badge 2x thumb
Thanks @amy