GithubHelp home page GithubHelp logo

ljfio / umbraco-forms-validator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 209 KB

WIP - The Missing Validator for Umbraco Forms

License: Apache License 2.0

C# 75.13% JavaScript 13.71% HTML 11.17%
umbraco umbraco-cms umbraco-forms umbraco-package validation validator

umbraco-forms-validator's Introduction

Stack

microsoft dotnet csharp typescript astro vue cloudflare sql-server umbraco rider vscode docker kubernetes mac-os windows-11 iterm windows-terminal notion

Certification

aws azure

Social

website linkedin mastodon nuget npm

umbraco-forms-validator's People

Stargazers

 avatar

Watchers

 avatar

umbraco-forms-validator's Issues

Text based validation rules

Introduce new TextValidationRule for all text based validation rules.
Would only require a TextValidationSetting which has child types.

The TextValidationSetting would have a Value/Text field and no Expected Data Type

Move the existing RegEx based rule to be based on this.

Change validator rule picker size

Update the infinite editor to be a medium sized editor with the form-horizontal class applied to horizontally align the label / description

Write up documentation

Need to have the README reflect:

  • Installing
  • Usage
  • Extending
  • Feedback

For each built in validation rule / setting document a simple purpose and usage for each.

In-repository documentation on how to extend the solution:

  • Create custom validation rules
  • Create custom validation settings
  • What is the validation collector
  • What is the value provider

Implement data type picker

To allow comparison between values and fields we should introduce a way to select the data type you're expecting in the Rule Picker which corresponds to a class in the backend which converts values and performs the Compare on IComparable.

Useful for both FieldValue and FieldComparison rule types.

Allow reordering of validation rules

The validation rules should execute in sequence based on an order. This will allow the stop processing to make sense and directly affected by the order.

Tasks:

  • On the Validator settings content app, allow the user to reorder the rules
  • Store the ordering for settings
  • Sort the validation rules when executing to

Persist validation rules on form save

When the Umbraco Form is saved stored the associated Validator Rules / Settings in the database

Test following cases:

  • Form is new (no GUID, until save)
  • Form exists

Allow custom validation setting field types

Out of scope

Allow extensions of the plug-in to create custom pickers / use custom pickers for validation setting fields.

Example:

  • Range control for selecting range validation value needs to fit in
  • Content or Member pickers - to validate selected data in a submitted form?

Add in grouping for rules

Allow the rules to be grouped in the Rule Picker by their respective types:

  • Form
  • Field Value
  • Field Comparison
  • Text?
  • Required?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.