Feature Suggestion - Rule validation (for fields) #254

Closed
opened 2018-03-24 21:35:35 +00:00 by ro-ot · 2 comments
ro-ot commented 2018-03-24 21:35:35 +00:00 (Migrated from github.com)

Suggestion

A new view to build rules and an easy way to add them to fields.

Additional comments

I know that you can do this with some custom file, that you add in and then use in the field as a validate="newrule" but having a easy way to do this inside JCB seems like a great idea.

One of the options is to get the code from the /public_html/libraries/src/Form/Rule as a starting point. So that a selection can be made, of any of the existing rules which then loads the code for that rule and then you can adapt it to your desire.

### Suggestion A new view to build rules and an easy way to add them to fields. ### Additional comments I know that you can do this with some custom file, that you add in and then use in the field as a `validate="newrule"` but having a easy way to do this inside JCB seems like a great idea. One of the options is to get the code from the `/public_html/libraries/src/Form/Rule` as a starting point. So that a selection can be made, of any of the existing rules which then loads the code for that rule and then you can adapt it to your desire.

Okay I have added this feature, please test and give feedback.

You will see the fields area has a new list of validation rules, and there is a new validation rules view.

Okay I have added this feature, please test and give feedback. You will see the fields area has a new list of validation rules, and there is a new validation rules view.
ro-ot commented 2018-03-29 21:17:42 +00:00 (Migrated from github.com)

I like what you did to the layout and linking of this feature into the fields area. From my test it works very well, thank you!

I like what you did to the layout and linking of this feature into the fields area. From my test it works very well, thank you!
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#254
No description provided.