a!integerField() length validation issue

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 as


Why it shows value is too small?
Anyone faces same issue?

Thanks,

Shubham

  Discussion posts and replies are publicly visible

Parents
  • Hi Shubham Aware,
    I was also facing the same issue and to overcome with this we used a!textfield instead of a!intergerfield.
    but to restrict the user to enter only numeric values in the text field we created one more expression that removes alphabet and special characters from the value.
    ##ABC_Utils_RemoveAlphabetsAndSpecialCharacter
    concat(
    tointeger(
    apply(
    charat(
    ri!String,
    _
    ),
    enumerate(
    lenb(
    ri!String
    )
    ) + 1
    )
    )
    )
    Replace your integer field with this code
    _____________________________________________________________________________________________________
    a!textField(
    label: "Amount",
    value: rule!ABC_Utils_RemoveAlphabetsAndSpecialCharacter(
    String: ri!String
    ),
    saveInto: a!save(
    ri!String,
    rule!ABC_Utils_RemoveAlphabetsAndSpecialCharacter(
    String: save!value
    )
    )
    )
Reply Children
No Data