Menu

field length string

2023-12-13
2023-12-15
  • mariano molina

    mariano molina - 2023-12-13

    I want to specify a length of 8 caracter how i made?

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-12-13

    You could create an extension, and define a "validation_pattern" for this field to make sure it's exactly 8 characters.

    https://www.itophub.io/wiki/page?id=latest:customization:xml_reference#fields -> AttributeString -> validation_pattern

     
  • mariano molina

    mariano molina - 2023-12-13

    and how must be de validation_pattern
    i need 8 caracter

    <validation_pattern>^V\d{1,2}(.\d{1,2}){0,2}( P\d{1,2})?$</validation_pattern>

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-12-15

    Try something like

    <validation_pattern>^.{8}$</validation_pattern>
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.