I am facing weird issue in a!integerField. When i enter 11 digit or more than that in integerField it throws validation message as
which is understandable as it converts number to exponential which appian does not support.But when i enter 20 digit number it throws validation message asWhy it shows value is too small?Anyone faces same issue?Thanks,
Shubham
Discussion posts and replies are publicly visible
This function works. thanks kaushala
Thank you, Chetany. From my view, this workaround is a sloppy way for Appian do deal with this limitation, and I see it as a bug since there are other applications out there that have addressed this.
I wonder if there will be any fix for this in the future releases. We are using 20.1 now and the issue persists.
Thanks,
Roberta
Hi Chetany, It was very explanation. but it is not working for me.
{ a!sectionLayout( label: "Section", contents: { a!localVariables( load( local!number:2147483647, a!integerField( label: "Phone Number", labelPosition: "JUSTIFIED", value: ri!number, saveInto: ri!number, validations: if( length(local!number)>=10,{}, "Eneter 10 digits only." ) ) ) ) }
getting below error. can you pls help on this
For a phone number, you should just use a text field (and save it as a text value). The length() function you're trying won't work for a number data type, since numbers don't actually have a "length" in terms of character count.
Also, this is a very old thread -- if you're having a new issue you might consider creating your own new thread.