Uploaded image for project: 'Suggestion Box'
  1. Suggestion Box
  2. SUGGEST-179

Provide more built-in field validators

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Neutral
    • Resolution: Unresolved
    • Labels:

      Description

      The list of available build-in validators is quite thin: https://documentation.magnolia-cms.com/display/DOCS61/Field+validators#Fieldvalidators-Listofvalidatordefinitionclasses

      I get that the idea is to leverage the power of the regex validator, but most of us are neither proficient enough in regex or have the time to write a reliable regexpression for a lot of use cases. Thus i think there should be a build in validator for the most common cases:

      • valid Number? (either decimal or fraction)
      • valid URL? (either with or without https)
      • valid Phonenumber? (one could use libphonenumber for that)

      im sure one can come up with more...

      Maybe this would make a great magnolia-module, which sole purpose would be to provide validators. Maybe for more complex stuff like adresses or user names.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            martyglaubitz Marty Glaubitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: