how to apply validator for text field to allow only integer number

Issue #207 resolved
Former user created an issue

I added number field and validator it is working fine but after creation of the ticket it is showing "," in integer field, so I want to add text field and validate with regex , please suggest me on the same.

how to apply validator for text field to allow only integer number

Comments (3)

  1. Fidel Castro Armario repo owner

    You don't need to use text field to validate that a number field contains an integer. To do it you should use "Boolean validator with math, date-time or text-string terms" wit the following boolean expression:

    {nnnnn} = round({nnnnn})
    

    If you want to remove the fractional part of a number field, you can use "Mathematical and date-time expression calculator" with the following formula:

    floor({nnnnn})
    

    replacing nnnnn with the corresponding field code.

  2. Log in to comment