Skip to main content
Solved

Data Validation for character limit

  • Jun 19, 2020 6:29 PM UTC
  • 2 replies
  • 109 views

Forum|alt.badge.img+1

Is there a way to enforce data validation on a field? For example, if I want to enforce users to enter a name under 20 characters or less, can I do that?

Best answer by ScottWorld

No, but you can create a formula field that shows a word or an emoji if the name is above 20 characters.

For example, you can create a formula that looks something like this:

IF(LEN({Name Field})>20,"❌","✅")

Replace “Name Field” with the name of your actual field.

Hope this helps! If this answers your question, could you please mark this comment as the solution to your question? This will help other people who have a similar question. :slightly_smiling_face:

View original
This topic has been closed for replies.

2 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • Answer
  • Jun 19, 2020 6:36 PM UTC

No, but you can create a formula field that shows a word or an emoji if the name is above 20 characters.

For example, you can create a formula that looks something like this:

IF(LEN({Name Field})>20,"❌","✅")

Replace “Name Field” with the name of your actual field.

Hope this helps! If this answers your question, could you please mark this comment as the solution to your question? This will help other people who have a similar question. :slightly_smiling_face:


Forum|alt.badge.img+3
  • Participating Frequently
  • Oct 7, 2024 3:45 PM UTC

Yes! just use the DataGuard extension to enforce the maximum length rule for your field. If a user attempts to input a name that exceeds the set limit, the change is automatically reverted and the user is shown an alert.