515
questions
0
votes
1
answer
23
views
Why doesn't ASP.Net MVC client side validation trigger where input is outside form element, but linked via form="formid" attribute?
I am using ASP.Net 8.0 MVC...
ScenarioName property has a Required attribute in the Model..
When I use the following, clicking submit button with all of these elements wrapped inside the form tag ...
0
votes
0
answers
24
views
Client Side Validation on CKEditor
I have a CKEditor for editing a news content field.
I have done client-side validation for the create page and it works but when on the edit page if I remove the already existing content and submit I ...
1
vote
0
answers
203
views
ASP.NET Core 8.0 client-side validation not working
For some reason, I cannot get the client-side validation to work from my Razor views. However when I created a Razor page by itself without using the Layout page, it works. I'm not sure why. ...
1
vote
1
answer
315
views
Detect if reportValidity() is currently showing the validityMessage on a DOM element?
Calling reportValidity() on in invalid field causes the validation message to show in a browser-dependent way.
However, calling reportValidity() again causes the validation message to disappear on ...
0
votes
1
answer
70
views
Validate form without submitting it [duplicate]
I have a the following Bootstrap modal.
<div id="product-modal" class="modal" tabindex="-1" role="dialog">
<form>
<input id="...
0
votes
0
answers
41
views
Can changing a function inside a script tag in an html page using chrome developer tools work?
I am learning about websecurity particularly xss. Although I have done server side sanitization, I wanted to know upto what extent can client side sanitization protect me. So I am using DOMPurify for ...
0
votes
0
answers
37
views
How to conditionally require a related object property in ASP.NET Core 6?
I have related objects VehicleAcquisition and FleetValue. I want to make FleetValue.ConditionId required if VehicleAcquisition.RequestType.Label == "Replacement".
The following solution ...
0
votes
1
answer
37
views
Clientside Dropdown validataion in razor ajax
I have a form where i have multiple text box and dropdown boxes
My view is as follows
<form id="canditateForm" asp-action="CreateCanditae" method="post">
...
1
vote
0
answers
87
views
SignalR validation on client side in react with .net core API
Is there any security benefits or any other purpose to implement client side validation using SignalR.
In one of project I have seen that, using SignalR they are validating the react form by calling ...
1
vote
0
answers
577
views
XML string validation against XSD in Angular
I want to validate a XML string user provides as an Input against XSD. I found solutions for backend but don't see any client-side solution. Any suggestions?
Simple XML string validation is possible ...
0
votes
1
answer
595
views
ASP.NET Core 6: Client-side localized number validation
I use ASP.NET Core 6.0 and want to create an exclusively German-language application. So far everything works fine, not least because of the good content here.
However, I now have a problem that the ...
2
votes
0
answers
127
views
how to implement Joi validation on client side?
Is there any way to apply the same schemas I use as a middleware on express to be used on client side as well? can you give me a detailed example of how please?
if not is there any example of Joi ...
1
vote
1
answer
616
views
DateRange client side validation in ASP .NET6 using Fluent Validation
In my application I'm using a form to enter user information including birthdate. I want to perform both client-side and server-side validation and I'm using Fluent Validation.
I want a clean solution ...
0
votes
1
answer
52
views
Using the outcome of a function in another function [duplicate]
I have created 3 functions to cilentside validate a form for its name, email, and website, I would like to create a 4th function that checks if the outcome of the 3 first functions is true, we submit ...
0
votes
1
answer
74
views
Validating request coming from the client side of a JDBC server
I have to implement a scenario, where a user logs in to the application and I have to validate the queries that where being executed during the load run of the log in scenario. Now I know that the ...
0
votes
1
answer
417
views
How to add validated field length to @Html.ValidationMessageFor client validation message?
I have a "Description" TextArea field on my form.
@Html.ValidationMessageFor(m => m.Opis, "", new { @class = "control-label text-danger" })
Model property has ...
0
votes
2
answers
769
views
How to use browser validation on submit without blocking the submit handler
HTML5 lets us submitting forms from a button outside the form.
<form id="myform">
<input required/>
</form>
<button type="submit" form="myform"/>...
1
vote
0
answers
332
views
Client side validation with Jquery - MVC C# app
I am working on a very LEGACY ASP.NET MVC app using C# which is built from 2009. They don't have any client side validation at all. In other words, they don't use validation mechanism provided by the ...
0
votes
1
answer
354
views
Close static backdrop modal on failed client-side validation when submitting
Before submitting a form the user clicks a button to open a "confirm" modal. When pressing "Apply" in the modal client-side validation fires and validates all fields. So far so ...
0
votes
1
answer
295
views
Client-side form validation for multiple forms on single page
I have multiple dynamic forms being presented on a page. Please see my snippet below for an example. The problem is I want to make sure a value is selected in each form using JavaScript.
<div ...
0
votes
1
answer
1k
views
Conditional client side validation in ASP.NET MVC Core 3.1
I want to make conditional validation in ASP.NET MVC Core 3.1. I have written custom validation and it works fine in server-side validation but I am unable to perform client-side validation. In my ...
0
votes
1
answer
218
views
Rails 6 gem client_side_validations applied to a model with context not working
I have a model like this:
class Profile < ApplicationRecord
validates :username, presence: true, on: :data_setup
end
where :data_setup is a page.
After installing the client side validation gem, ...
2
votes
3
answers
3k
views
Asp.NET MVC Client side validation is not working
whenever I am submitting the form without entering the required fields instead of giving an immediate client-side validation error it is going to the Httppost Actionresult Index method allowing to ...
1
vote
1
answer
562
views
Only limit one period/decimal in field (client-side validation) Regex - JavaScript
I have a client-side validation function in JavaScript for a field Value that allows the user to enter-in a dollar amount. The validation works perfect (only allows numbers and periods/decimals to be ...
1
vote
0
answers
247
views
Problem With .Net MVC5 Validation - Errors don't go away when they are Fixed
I am having an issue with my validation with my .Net MVC5 form. When I submit my form I get the validation summary as well as the validation messages under each field that's invalid. The problem is ...
4
votes
1
answer
2k
views
How to set up Client side validation for a custom RequiredIf attribute for Asp.NET Core 3.0
I was not able to get my client side validation method to fire after setting up the validation according to various sources. After lots of struggle I found that changing the order of when the scripts ...
0
votes
0
answers
215
views
Jquery Client Side Validation through Asp.Net MVC
I am trying to validate re-password input via jquery client side validation through asp.net mvc. I use modal for my form. I send the form data to asp.net using ajax method. Then I send the error ...
0
votes
1
answer
324
views
MVC Client Side Validation - Combine two fields validation into one message
I have code the code below:
[Display(Name = "Last Name")]
[RegularExpression(@"^[-.&()a-zA-Z0-9'' ']*$", ErrorMessage = "Special character not allowed.")]
...
0
votes
0
answers
576
views
javascript Client side validation in Django
I am using Django. I have a template with two input fields and one button. the html code as follows: the page will show results of search in same page itself.
search.html
<form method="get">
...
0
votes
1
answer
2k
views
Client side & Server side validations in ASP.NET MVC
In the ViewModel, I have Data Annotations for few fields.
public class EmployeeContactInfoVM
{
[Key]
public int slNo { get; set; }
[Required]
[Display(Name = "Employee GlobalView ID *")]
[...
0
votes
0
answers
373
views
Check all inputs with onStepChangingMethod (jquery-steps)
I use jquery-steps in my application and it has onStepChanging which does some action when you change tab. Now I want check all my inputs if they are empty or not. And if some of them is empty I want ...
0
votes
2
answers
273
views
RegEx for client-side server in Ruby on Rails
I'm doing server-side and client-side validation for names in my rails application. Currently, I have to duplicate the regular expression because the constant that works on the server is throwing an ...
0
votes
1
answer
598
views
Setting custom validity on input that is not part of a form
I'm trying to modify the error message for input in my rails application. I'm already doing this using the same code for other inputs that are inside a form. These inputs are not part of the form, ...
2
votes
1
answer
2k
views
ASP.NET Core + Client Side Validation: No data-val-* attributes are generated if ViewBag and Model has same property name
I realized in ASP.NET Core 2.2 that no data-val-* attributes are generated if ViewBag and Model has the same property name (in my case it is about the propery "Title"). Because of missing data-val-* ...
0
votes
0
answers
364
views
Why does ASP.NET MVC client side validation fail when 'Title' property exists on view model?
The question already points out half of the problem, which is what appears to be an extremely onerous framework bug, namely: When your view model has a Title property, binding to that property makes ...
1
vote
1
answer
207
views
Client Side Validation Doesn't Work In Nested Layouts in Asp.Net Core Razor Pages
I have created a Students specific layout in my Razor Pages application and put it inside _Layout as a nested layout.Now the problem is when the Create page is opened within _StudentLayout,the client ...
3
votes
2
answers
2k
views
Redux Form 7.4.2 , How to prevent form submit on component render and showing errors
Im using reduxForm 7.4.2 , working with client side validation on simple form.
The form is being submitted on page load and shows error like below :
I want to prevent form being submitted on page ...
3
votes
2
answers
10k
views
How to Check Password validation dynamically using jquery/javascript?
Kindly read my question fully before assign my one as duplicate.
Hi I tried to verify password dynamically during keypress. Actually it is working for me while enter the password. But When I delete ...
1
vote
1
answer
1k
views
Mute HTML validation message while typing
Steps to reproduce the issue:
Set an input of type email / phone
Set the input as required
Hit form submit on the wrong pattern for email
The HTML validation message should be now visible.
Keep ...
0
votes
0
answers
58
views
How to make client_side_validations work for a field that is created dynamically using JavaScript
I am using client_side_validations in a Ruby on Rails application form.
I have a select field which is converted to a Jquery combobox on page load.
That means, I do not see the select box on my screen ...
10
votes
0
answers
721
views
Can we stop Vue from performing Client Side Hydration for a specific component?
I am fairly new to Vue and we are facing a problem where the total DOM size for our page has increased because we are storing a lot of data in DOM config for Vue client side hydration. For SEO ...
0
votes
0
answers
206
views
Rails 4 Client Side Validations on Simple Form not working inline?
Hi I need some more help.
I'm following this tutorial on using client_side_validation: Railcasts: Client Side Validations. It seems straight forwardly easy to use however I can't find how to make it ...
2
votes
1
answer
733
views
Fluent Validation, MVC: Triggering Client-Side RuleSet Validation on Button Click
Context
In a view, I've created one form for my view model. I've separated the form over multiple sections using the Twitter Bootstrap Wizard plugin. The user can access the next section by clicking ...
0
votes
1
answer
1k
views
form_with client side validation
Im using the client side validation gem. And have ran the all the instructions as stated to get validation working, but validation doesnot work on my form.
My form:
<%= form_with(model: profile, ...
0
votes
0
answers
22
views
How to client side validation for list of viewmodel in mvc 5? [duplicate]
I want to validate the list of viewmodel but it is not working as expected however it is work for only viewmodel. Here are the my codes
1) HomeController.cs
public PartialViewResult ...
1
vote
1
answer
650
views
What to return when Server Side validation fails
I am currently using client-side HTML validation for all my forms. This includes things like Quantity must be a positive integer and Price must be non-zero. I have enforced this on the client-side, ...
0
votes
1
answer
2k
views
Validating pre populated input field angular
I have the following code:
<h1>New Book</h1>
<form #f="ngForm" (ngSubmit)="submit(f)">
<div class="form-group">
<label for="group">Group</label>
...
0
votes
0
answers
64
views
client_side_validations and callbacks
I have a model with fields that are validated frontend with client side validations gem.
My problem is for the below field (European VAT number for France) :
validates :VAT, length: { maximum: 15 }
...
1
vote
1
answer
2k
views
client validation in laravel 5.4
I have used this https://github.com/proengsoft/laravel-jsvalidation for client side validation.
Server side validation is working but client side onFocusout validation is not fire.
In composer file
...
0
votes
0
answers
287
views
client side conditional validators rails
I have the following model validation
validates_numericality_of :resident_mof_value, :greater_than_or_equal_to => 0, :less_than_or_equal_to => 100, :allow_nil => true, if: Proc.new { |r| r....