Skip to main content
Solved

limit a persistent number field to 2 digits

  • September 26, 2022
  • 6 replies
  • 113 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?

6 replies

Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • 1265 replies
  • September 27, 2022

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)
  • 18 replies
  • September 27, 2022

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)
  • 1265 replies
  • Answer
  • September 27, 2022

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)
  • 18 replies
  • September 27, 2022

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)
  • 18 replies
  • September 27, 2022

@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)
  • 1265 replies
  • September 27, 2022

@Link Hero

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

Great. You are welcome.