OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.41k stars 2.39k forks source link

Add validation rules to Form Field validation workflow task #12730

Open MikeAlhayek opened 1 year ago

MikeAlhayek commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently we have a workflow task called “Validate Form field” which is responsible of validating field from a form. However, this task only check if the given field is empty!

Describe the solution you'd like

I think this task should include a way for the user to select different cases of validation. So we would add a new drop down menu names “rule” with the following options to name some

In addition to the above, we would have a checkbox called required. We would have to check this box by default for backward comparability.

sebastienros commented 1 year ago

Please take a look at this PR for the comments we made on it, and the meeting where we gave them.

https://github.com/OrchardCMS/OrchardCore/pull/9036