-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation icon on form tab #1109
Milestone
Comments
Found this issue while looking at this: #1110 |
6 tasks
6 tasks
I tested the related PR (#1111) using the Sample codeclass HomePage extends BaseHomePage
{
private static $db = [
'ExampleField' => 'Varchar',
];
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Test', TextField::create('ExampleField', 'Example Field'));
return $fields;
}
public function validate()
{
$validation = parent::validate();
// Just return a validation error every time
$validation->addFieldError('ExampleField', 'This field cannot exist.');
// Never renders :(
$validation->addError('This page cannot exist.');
return $validation;
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
There's currently an open enhancement to add better handling to validation messages outside of a form tab that a CMS user has in focus, see: Validation messages for hidden tabs
Some early investigation into that enhancement has found that there's probably some regressed behaviour at play.
This issue aims to look at a more immediate fix utilising some of the code that's appeared to regress, with the addition of the icon indicators outlined in Validation messages for hidden tabs.
Acceptance criteria
Notes
This has been raised separately from Validation messages for hidden tabs silverstripe-cms#2081 assuming that it will be a quick fix and possible for inclusion in a patch release.
@sachajudd to raise a PR to add the new icon to the font set.
This will not address adding icon indicators in the root tabs, i.e 'Content', 'Settings', etc
Designs
Patch designs
CMS Design System - Validation errors future state
PRs
The text was updated successfully, but these errors were encountered: