Questions tagged [validation]

For questions related to Sitecore item and field validation rules within the Sitecore Client

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
447 views

Sitecore 8.2 MVC site setup and Issues

I am creating a Sitecore 8.2 MVC test website and I am getting a couple of errors and client form validation Issues. Get methods are working fine but the post method is not working. I have exact same ...
4
votes
0answers
337 views

Apply field validations across fields

I'm building a component that, among other fields, contains "title" and "text" fields. The business logic is: If both fields are empty, that is OK If both fields are populated, that is OK If one ...
4
votes
0answers
219 views

Experience Editor - “” is not a valid number

I am currently facing an error with the Experience Editor and integer field. So I have a Datasource template that has a field of integer type (without validation - meaning not required). Through the ...
2
votes
0answers
69 views

Run Validation Item on Save in Experience Editor

I have created a custom Rule in /sitecore/system/Settings/Validation Rules/Item Rules When I press the validate button, I can see the Rule and its result, so far so good. But the Validation Button is ...
2
votes
0answers
125 views

WFFM - Custom validation class on form not being hit

Using Sitecore 8.2 I have a form and I'm trying to add custom validation to the email field to block forbidden domains. I created the validation item in Sitecore and added it to my field: and I ...
2
votes
0answers
628 views

Custom Field Validation in WFFM (MVC)

In our website, we have the requirement to validate some WFFM Form field's based on third-party system data. We want to display the error message near to field (like required field validation). Is ...
2
votes
0answers
354 views

Adding a validator to a field type in WFFM does not work in 8.2

I need to add some custom validations for my form fields, beyond what can be done by regexes. I have created a custom validator using this approach, assigned it to the built-in Single-Line Text field ...
1
vote
1answer
62 views

Create Validation Rules via JSS

I'm working on a Sitecore 9.2 JSS project that needs a required field that results to FatalError. The default required field in Sitecore is using CriticalError. I can create it manually in Sitecore ...
1
vote
0answers
33 views

Sitecore Form with Salesforce Connect - Custom validations for postcode using external API

The custom validation for the postcode validation using Sitecore forms for a simple contact form which connects to salesforce. I have seen multiple articles for the custom validation and also ...
1
vote
0answers
39 views

On Item Creation: Warning/Confirmation dialog for invalid Item Name

I want to create a Warning/Confirmation dialog when certain items do not pass our custom item name validation rules. The user can still override the warning dialog via OK/Cancel Buttons. I've tried ...
1
vote
0answers
439 views

FatalError Required validation not working

I am using SXA 1.8, and Sitecore 9.1 I am trying to add a validation for a Date type field where it is required, and the user cannot save the item unless this field has a value, I have copied ...
1
vote
0answers
111 views

How can I move validation summary on WFFM to display at the bottom of the form?

I'm trying to change the position of WFFM form validation summary in Sitecore 8.2 update 5. My form is very long and by default, the validation summary displays at the beginning of the form so the ...
1
vote
0answers
471 views

Custom Validator - Updated Error Message is not Displayed

I created a custom validator for a multi-list field which checks the number of selected items based on the min and max count set in a configuration item. On debug mode, the validator is being called ...
0
votes
0answers
32 views

How can I auto detect current form's id in Sitecore

I want to create a custom email validator to check if email exists or no to do that I must know the form's id so that to get its data I can do that using this code ID ID = new ID("{form id}")...