Skip to content
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

[Feature] Display single error message by field #5939

Merged
merged 1 commit into from
Sep 18, 2017

Conversation

biplobice
Copy link
Contributor

Concrete5 shows error messages together on the top of the form. But, sometimes we may need to show the messages underneath of the form field. This PR allows to print error messages for single field by following way-

if (is_object($error) && ($error->has())) {
    echo $error->getMessage('uEmail');
}

@aembler aembler merged commit 2cc650b into concretecms:develop Sep 18, 2017
@aembler
Copy link
Member

aembler commented Sep 18, 2017

This is nice.

@biplobice biplobice deleted the feature/get-error-message branch September 19, 2017 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants