Questions tagged [validationmessage]
37 questions
16
votes
7 answers
Newline in a ValidationMessage
I'm testing a list of things for null. Every time I find one, I save it in an array to implement it in a validationmessage.
Output I want looks like this:
Field 1 is required
Field 4 is required
etc...
But I can't seem to be able to start a new…

sander
- 719
- 2
- 9
- 21
5
votes
0 answers
Angular 4 - Ng2MDFValidationMessagesModule - Error encountered resolving symbol values statically
I know that there are a lot of questions answered for this particular error but after trying out the combination of those solutions, none tend to help with this package.
ng2-mdf-validation-messages -…

Kunal Dethe
- 1,254
- 1
- 18
- 38
2
votes
1 answer
Blazor - Nested component does not highlight invalid fields or display ValidationMessages
I can't figure out how to highlight invalid fields and display individual ValidationMessages for nested components. The same code when added to the page works as expected, but when moved to a separate component the page's ValidationSummary displays…

GritKit
- 396
- 4
- 6
2
votes
1 answer
Simple, wrapping red validation message in java swing
So I've been developing web applications for 10 years, but have fond memories of working on small swing applications that related to an introductory programming curriculum I was paid to help with before that. I generally like building swing/java UI…

Gus
- 6,719
- 6
- 37
- 58
1
vote
1 answer
Custom Validation Message Component in Blazor
I created a custom validation message component in Blazor like this:
@code {
[Parameter]
public object model { get; set; }
}
and I have a class:
public class…

vmahdavi
- 399
- 1
- 4
- 9
1
vote
0 answers
Validation Messages is not visible when using an EditForm with custom Wizard Component
I have followed tutorial below how to create a simple wizard component in Blazor Webbassembly, so far so good.
https://sinclairinat0r.com/2019/12/08/creating-a-simple-wizard-component-in-blazor
But when I try to put the wizard inside an Edit form…

Mega Coder
- 13
- 2
1
vote
1 answer
Supress key or remove the key from the message queue
i want to use the down arrow to send {tab 6} to a gui
for skipping 5 controls and go to the 6th control.
the down from the keyboard was send to the gui but should suppressed
and the {tab 6} does not arrive the gui
OnMessage(0x100, "OnKey") ; Key is…

gsxr1300
- 351
- 2
- 4
- 12
1
vote
1 answer
Validation message doesn't appear in ASP.NET MVC
I am using ASP.NET MVC for form validation. I have one page of "Users" which have two forms named as "adduser" form and "edituser" form.I'm trying to apply same validation message against m.user.firstName property for both forms.
Add user…

uxman ali
- 43
- 2
- 8
1
vote
1 answer
@Html.ValidationMessage adding prepending field. to key
I am trying to use @Html.ValidationMessage like the following:
@Html.TextBox(Model.Key, "", attr)
@Html.ValidationMessage(Model.Key)
However, my validation message isn't displaying.
If I print my Model.Key to the screen, I get "FirstName",…

Pete
- 57,112
- 28
- 117
- 166
1
vote
0 answers
How to create validation Message for fields in razor MVC using ViewModel
I want to create field validation in my razor view.
This is quite easy because the MVC will automatically generate the validationMessageFor for us.
As what I have read that, we are not allowed to make the validation in model class, instead use…

user3643092
- 426
- 1
- 8
- 20
1
vote
1 answer
Generating default constraint message template with bean validation
How would I go about wanting to generate a default message template for a constraint (in a JPA entity) if no such message template is already defined on the annotation itself.
Here's what I mean. Suppose I have a JPA entity 'Dummy':
@Entity
public…

milin
- 414
- 4
- 14
1
vote
1 answer
ValidationMessagerFor and AddmodelError not working
For the life of me I cant figure out why this simple piece of code is not working. I know there are many questions like this here and I 've tried all of them, but I just cant get it to work!
My controller:
//validate email
if…

Vrashabh Irde
- 14,129
- 6
- 51
- 103
0
votes
1 answer
How to style input validationMessage
input type email has the validationMessage "Please include an @ in the email address. 'John' is missing an @.". When I attempt to submit the form, this message displays, how can I style this message?

Golden_remi
- 69
- 7
0
votes
0 answers
Customize StoryBlok meaningful error messages
I am working on a project which uses StoryBlok as their headless CMS. We recently encountered a problem that sometimes, CMS content editors are not given any meaningful error messages. For an example, if they select 5 items where allowed maximum…

John Fonseka
- 793
- 1
- 8
- 15
0
votes
0 answers
.Net Core Razor page not displaying error message for ModelView
In my .Net core application I have setup Fluent validation and a class that has basic validation.
I see these validation messages being fetched to the generated HTML when I inspect each element.
I don't understand why the error message is not…

Prasanna S
- 11
- 1