Skip to main content
New Participant
Nov 9, 2021 9:15 AM UTC
Question

Enter just numbers in text fields

I tried to add an!integer Field but it delete zeros at the beginning so I want a condition or a validation for this case

    7 replies

    richardm900458
    Inspiring
    Nov 9, 2021 9:51 AM UTC

    you can try to treat it as string/text and use a!textfield 

    asmas0002Author
    New Participant
    Nov 9, 2021 11:14 AM UTC

    a!textfield but I need to reject text and accept numbers 

    stewart.burchell
    Employee
    Nov 9, 2021 11:18 AM UTC

    Yes. You can add a validation to the textfield and check that the content only contains digits. 

    stefanhelzle0001
    Brainy
    Nov 9, 2021 10:26 AM UTC
    richardm900458
    Inspiring
    Nov 9, 2021 12:08 PM UTC

    Hi stefan,
    awesome input! I didn't know this easy approach. I will definitly play more with the text() function regarding formating.