Best Practices

 View Only
  • 1.  Maximum number of characters in Test field or Text Area

    Adopter
    Posted 11-15-2023 08:39

    Hello,

    Does someone of you have some tips on how to limit the maximum number of characters in a text field or area?

    For instance : only 10 characters are allowed to fil in a text field.

    I tried to use the Router Setup but if there are less than 10 characters an error is generated.

    Regards,

    Peter



    ------------------------------
    Peter Dienaar
    PF developer
    Johnson Controls
    ------------------------------


  • 2.  RE: Maximum number of characters in Test field or Text Area

    Staff
    Posted 11-15-2023 09:25

    Hi Peter,

    It looks like using REGEX may work for you. There was a post on this previously in the Community. Check this post out and if it's not quite what you need, let us know.

    https://community.prontoforms.com/groups/community-home/digestviewer/viewthread?MessageKey=b3293e18-82ac-4c53-983b-5a56c5edf723&CommunityKey=2d781f2b-e8b5-4b6a-a709-fe54ef286283#bmb3293e18-82ac-4c53-983b-5a56c5edf723



    ------------------------------
    Stu Rathbone
    Director - Support & Enablement
    ProntoForms
    community@prontoforms.com
    ------------------------------



  • 3.  RE: Maximum number of characters in Test field or Text Area

    Adopter
    Posted 11-15-2023 09:38

    Thank you.

    This validation expression works : ^.{1,10}$

    In this case max 10 characters in my Text field.

    Peter



    ------------------------------
    Peter Dienaar
    PF developer
    Johnson Controls
    ------------------------------



  • 4.  RE: Maximum number of characters in Test field or Text Area

    Staff
    Posted 11-16-2023 10:10

    Thank you for the update on this Peter. I am sure this will be of value to many in the Community.



    ------------------------------
    Stu Rathbone
    Director - Support & Enablement
    ProntoForms
    community@prontoforms.com
    ------------------------------



Reminder: Content posted to our Community is public content.  Please be careful not to post Intellectual Property that you do not have permission to share.  For more information please refer to our Terms Of Use