Solved

limit a persistent number field to 2 digits

  • 26 September 2022
  • 6 replies
  • 70 views

Userlevel 2
Badge +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?

icon

Best answer by Link 27 September 2022, 14:05

View original

6 replies

Userlevel 7
Badge +22

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.

Userlevel 2
Badge +6

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

Userlevel 7
Badge +22

Hi @MikeB_EC 

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

 

Didn’t you do that?

Userlevel 2
Badge +6

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

Userlevel 2
Badge +6

@Link Hero

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

Userlevel 7
Badge +22

@Link Hero

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

Great. You are welcome.

Reply