Custom fields in Filedrop with validations

Discussion in 'LiquidFiles General' started by William, Oct 22, 2024.

  1. William

    William New Member

    Joined:
    Jan 7, 2024
    Messages:
    7
    Likes Received:
    0
    I have a filedrop that is configured with a custom field:

    Case number: text("Reference number"), required, validate("^[1-9][0-9]{5}$", "Must be a number containing 6 digits, beginning with a digit greater than zero.")

    Any value within the "Case number:" field presented on the file drop is accepted. Should this be performing validation or am I missing some setting?
     
  2. David

    David Administrator
    Staff Member

    Joined:
    Dec 1, 2015
    Messages:
    803
    Likes Received:
    31
    Yes, the validation is performed when added in the custom text filed and when all is correct.
    But it can't handle commas "," in the description text, which is this case.
    When you remove it it will work.

    Case number: text("Reference number"), required, validate("^[1-9][0-9]{5}$", "Must be a number containing 6 digits beginning with a digit greater than zero.")
     
  3. William

    William New Member

    Joined:
    Jan 7, 2024
    Messages:
    7
    Likes Received:
    0
    Thank you. That resolved the issue.
     

Share This Page