Check type of variable

peterraeves
Mega Guru

On a Record Producer, the only one-line variable type is just a string. Is it possible to have a number variable?

Our problem is that just having string fields is not sufficient. We want to set the maximum length of the string fields, we want number fields, we want to specify the range of the number. Such things are possible ootb on regular fields, but are they possible on record producer fields, or should we create these checks ourselves...?

1 ACCEPTED SOLUTION

lSurya 24
Giga Guru

Unfortunately, we dont have them on Catalog item OOB. You have write on change client scripts for Validations.


View solution in original post

4 REPLIES 4

PrashantLearnIT
Giga Sage

Hi Peter,



For this you have to select string type only but for integer and length this can be done by validation using client script.



Please Mark Correct 0r Helpful if it helps.


********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Oké. Enhancement Request here I come


lSurya 24
Giga Guru

Unfortunately, we dont have them on Catalog item OOB. You have write on change client scripts for Validations.


That's too bad. I logged an enhancement request on Hi. I hope it gets some traction, as some sort of validation would be great on variables.