Skip to main content
Solved

limit a persistent number field to 2 digits

  • Sep 26, 2022 7:36 PM UTC
  • 6 replies
  • 149 views

Forum|alt.badge.img+6

I have created a persistent filed of data type number and would like to limit it to 2 digits.  Does anyone know how to limit the field to 2 digits?

Best answer by Link

Hi @MikeB_EC 

if you create the custom field you can set the max length:

 

Didn’t you do that?

View original

6 replies

Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • Sep 27, 2022 9:51 AM UTC

Hi @MikeB_EC 

what kind of limitation do you need?

For example: If you need a system info which informs the user (that only 2 digits are allowed) then you need a custom event.


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • Sep 27, 2022 11:58 AM UTC

I was trying to limit the field to only accept a max of two digits. i.e. 10, 99, 4 and not 100.


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • Answer
  • Sep 27, 2022 12:05 PM UTC

Hi @MikeB_EC 

if you create the custom field you can set the max length:

 

Didn’t you do that?


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • Sep 27, 2022 12:12 PM UTC

I did not get that option in Cloud, but that maybe because I choose the data type number.  I will check to see if it can limit it with data type text.  Thank you


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • Sep 27, 2022 12:29 PM UTC

@Link Hero

Thank you for the suggestion.  I believe using a data type of string will work for my situation.  


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • Sep 27, 2022 1:16 PM UTC

@Link Hero

Thank you for the suggestion.  I believe using a data type of string will work for my situation.  

Great. You are welcome.