Phone field on Lead Object and want to apply some validation on phone field.

  • 1
  • Question
  • Updated 1 year ago
  • Answered


1.If i enter some text on this field so it shows characters are not allowed?
2.I want to include + and  - in the phone format?
Photo of Himanshu jasuja

Himanshu jasuja

  • 104 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Would input masking help?



Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Himanshu,

A mask is probably the way to go.  If you just want to generate a field level message, look at this post->

https://community.skuid.com/skuid/topics/magic_real_time_error_warning_rendering_using_javascript_sn...

Thanks,

Bill
Photo of Himanshu jasuja

Himanshu jasuja

  • 104 Points 100 badge 2x thumb
Thanks Bill,I tried to use this but not able to match my validation on Phone field.
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Himanshu,

Here is a community post on formatting a phone number.  Near the bottom is a reference to a jQuery library you can use to format a phone number.

https://community.skuid.com/skuid/topics/re_format_a_phone_number_using_custom_field_renderer

Thanks,

Bill