Questions tagged [validation]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

Field validation not working in Rendering Parameter Template for MVC form

I've assigned a Parameter Template in the MVC form rendering called Redirect Parameters (/sitecore/layout/Renderings/System/Forms/Mvc Form) as shown in below screnshot Within this template, I've ...
user avatar
0 votes
0 answers
49 views

Sitecore Form Validations - Helix Architecture - SEO improvements

on Sitecore Helix architecture, .. has anyone replaced vendor.min.js reference to any better newer library? or any recommendation around this scenario? https://github.com/Sitecore/Habitat/blob/master/...
user avatar
  • 89
0 votes
2 answers
235 views

Validation rules not working

I have applied some validation rules in template standard value as below. When I am trying to create data item based on this template, rules are not kicking in and data is saved with empty Title ...
user avatar
  • 153
1 vote
1 answer
78 views

Validation problem with checkbox when using Rules Validation Rule

I've created an item rule using the Rules Validation Rule template. The rule ensures that there is a value provided for EITHER a specific text field OR a specific checkbox field. The rule works fine ...
user avatar
  • 373
2 votes
1 answer
162 views

Sitecore Forms string length validator not working for other languages text

I am using a Sitecore Forms string length validator which is working perfectly fine for English content, however if I am providing content in say Japanese language then in that case it is not working. ...
user avatar
0 votes
1 answer
42 views

Adding validations to marketing automation activity type parameters

I'm using Sitecore 9.3 Is it possible to add Sitecore validations to the parameters of a marketing automation activity type? I have a parameter called "Title" for example, and I'd like to ...
user avatar
0 votes
0 answers
38 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}")...
user avatar
1 vote
1 answer
131 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 ...
user avatar
  • 73
1 vote
1 answer
81 views

Show Multiple Validation Failures Of The Same Type In Experience Editor

I have created a few custom field validators in Sitecore and I'm running into an issue when testing them in the experience editor. For each error, I only see one banner at a time showing a failed ...
user avatar
  • 547
1 vote
1 answer
204 views

Enforce Site-Wide Alternate Text Validation On General Link Fields

I am working on Sitecore version 9.1. When attempting to insert a link using the general link field, the user is prompted to enter the following information: In an effort to enforce accessibility on ...
user avatar
  • 547
0 votes
1 answer
133 views

Custom CSS for Validation Message in webform for marketers 8

I want to styling validation message in webform for marketers. But I can't find where I can define CSS class or CSS for validation message.
user avatar
0 votes
2 answers
552 views

Apply validation rule to a specific item in content tree

I need to apply a regex based validation to see the number entered by content author is between 1 and 5 only. Problem is the validation should be applied to only specific content item only. ANy idea ...
user avatar
  • 187
1 vote
0 answers
60 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 ...
user avatar
1 vote
0 answers
53 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 ...
user avatar
  • 344
3 votes
2 answers
681 views

Dynamic DataSource for Droplist in Content Editor

I have a Droplist for Approvers and the DataSource of Droplist to /SharedData/Approvers. I don't want the current user to have his own name in the list. For example, DataSource List is having A, B ...
user avatar
  • 384
2 votes
0 answers
141 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 ...
user avatar
  • 257
0 votes
2 answers
569 views

Allow all characters in ItemNameValidation setting

Trying to install a package which has the item names with characters like (', '.', '). How can I temporarily disable ItemNameValidation setting? Tried changing the setting to '.*' which did not help....
user avatar
1 vote
1 answer
787 views

How to remove the blank field for Sitecore Droplink and Droplist

In Sitecore 9.0, when I create a Droplink or Droplist Sitecore generates a "blank" selection. For example I have a Droplink from Monday to Sunday, the first option will be a blank selection. How can ...
user avatar
2 votes
1 answer
140 views

Hide components in preview mode when there are field validation errors

I am using Sitecore 9.0.2 with SXA 1.8.0. I extended the Required Field validator with the Result=CriticalError parameter, so the authors can see an alert each time they edit a page in Experience ...
user avatar
1 vote
2 answers
259 views

When validating an item in a workflow action, null reference error?

So, I have an item with a couple of fields that have required validation rules. I've added a validation action when executing a workflow action (submitting to admin for approval). When I do this a ...
user avatar
  • 1,045
1 vote
1 answer
141 views

Users can publish even when item has blank fields marked with required validation rule

I have Sitecore 8.2, have the template for my item assigned to our custom workflow, I have all validation rules set to Required for the fields in question. Yet I can move the item through the ...
user avatar
  • 1,045
2 votes
1 answer
122 views

Validation error displayed on custom experience dialog incorrectly

In an SXA site I have cloned link list with item, and added a link custom editor button to allow editing of the list item fields. These fields have required validation. But I find that when I add ...
user avatar
  • 1,303
0 votes
0 answers
65 views

FatalError Required validation not working in sitecore 9.1 [duplicate]

i'm using sitecore 9.1 with SXA 1.8, i had the same problem in the this question, i tried to follow the solution mentioned there, i created a new user and gave him some read/write permissions while it'...
user avatar
  • 577
2 votes
1 answer
140 views

How to prevent an item from being moved to another folder accidentally?

I have 3 items in a folder based on the same template. Is there any functionality provided by Sitecore to prevent these items from being moved to another folder accidentally or deliberatively? Or we ...
user avatar
  • 543
2 votes
0 answers
576 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 ...
user avatar
2 votes
2 answers
5k views

'IServiceProvider' does not contain a definition for 'GetService'

This is the first time i deal with custom validations, but I need to create a unique email validation using sitecore 9.0.2 and SXA 1.7.1 so i was following this tutorial http://sitecoresolution....
user avatar
3 votes
2 answers
3k views

Make one of two sitecore content fields required?

I've been trying to find a way to make one of two fields valid and haven't come up with much. Is there a way to do this with custom field validators or is that just relevant to individual fields? ...
user avatar
  • 1,045
6 votes
1 answer
471 views

Remove Alt Required validation from image

I need to remove Alt required validation from Alt field in Image template, I removed Alt required validation from template image in path /sitecore/templates/System/Media/Unversioned/Image But when i ...
user avatar
2 votes
1 answer
610 views

How does Image Size validator work?

I wanted to set image size validation for an image field for example the image field should not accept any image more than 2 mb. For this I tried using Image Size validator available in Sitecore. ...
user avatar
  • 572
6 votes
1 answer
211 views

"Linked Item Has Allowed Template" Field Validation XP 8.2

We're trying to validate a Droptree field to only allow a certain template type be selected. We've found the /sitecore/system/Settings/Validation Rules/Field Rules/System/Linked Item Has Allowed ...
user avatar
  • 63
0 votes
1 answer
517 views

How to add required field validation to SXA Tags field?

I created SXA Tags in the Sitecore and I know how to add this tag to an item but I want to add the required field validation to the Tag fields, so I can not save the items without adding tag to it. ...
user avatar
2 votes
0 answers
143 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 ...
user avatar
8 votes
1 answer
768 views

Standard Required field validation reporting field is empty after upgrade to Sitecore 9.0 Update-2

We're getting an interesting validation error after upgrading from Sitecore 8.2 Update-6 to Sitecore 9 Update-2. We have the standard Required validator on a field (item name of the field is Title). ...
user avatar
  • 1,398
1 vote
1 answer
126 views

How to force the date filter to pick "from" date before picking "to" date?

I'm using Sitecore 9 and SXA 1.7. I have the SXA date filter component that I am using to filter some results, however, I noticed that it can let me choose the "to/end" date without choosing the "...
user avatar
1 vote
1 answer
820 views

Field validation not working correctly

We are on Sitecore 8.2 and just upgraded to update 7 from update 2 and we are now experiencing issues with field validation. When a user goes to approve or publish an item after making changes they ...
user avatar
1 vote
0 answers
158 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 ...
user avatar
4 votes
0 answers
393 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 ...
user avatar
  • 1,307
5 votes
1 answer
2k views

Stop user from saving and publishing when a field is Empty

Is there a simple way of stopping user from saving and publishing when a field is empty?
user avatar
  • 1,059
2 votes
0 answers
681 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 ...
user avatar
  • 547
3 votes
1 answer
2k views

Sitecore Field Validator Change to Custom Message

I have a field that is a required field validator in Sitecore. I marked that field as required and Set the parameter=FatalError so that users cannot save the item without entering data in that field. ...
user avatar
1 vote
0 answers
624 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 ...
user avatar
2 votes
0 answers
367 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 ...
user avatar
4 votes
0 answers
255 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 ...
user avatar
5 votes
1 answer
337 views

WFFM 8.2 number field regular expression validation Message

I am facing an issue with wffm number field regular expression. Wherever a user enters alphabet characters in a number field it's showing default value "Field contains an invalid number." but i have ...
user avatar
1 vote
1 answer
626 views

WFFM How to build custom Email-Confirmation field

I need to build a registration form in Sitecore 8.2 (update 4) using Web Forms For Marketers (WFFM) and MVC. How can I build email and email-confirm fields to verify that the user has typed the ...
user avatar
12 votes
2 answers
3k views

Special Characters and Spaces in Display Name

Sitecore constructs the default URL of an item based on its 'name' and it can also be configured to use 'Display Name' instead. There are Sitecore routines that prevent the content editor from typing ...
user avatar
2 votes
1 answer
630 views

Multi List field validation fails and unable to update field value from Experience Editor

Updated: I have added field validations to multi list field to select items from the data source, validation works fine in the content editor. But In Experience editor, validation error message ...
user avatar
4 votes
1 answer
2k views

Sitecore validation rule at field level in multi-list value selection range

I came across this multi-list field restrictions to limit range(selection) using regex. I got few references to add basic validations. Both work fine. Ref1: ^({[^}]+}\|?){0,5}$ http://www.benramey....
user avatar
9 votes
3 answers
2k views

Item validator access already stored data instead of newly inputed data

Im facing a problem with sitecore item validator when I try to save the data. The purpose of my validator (the class inherit from StandardValidator) is to simply check if, atleast, field A or field B ...
user avatar
  • 135
1 vote
1 answer
340 views

Suppress validation not working on Experience Editor

I have implemented multiple validations in base template field items and suppressed most of the validation in each children template standard values using the "Suppressed validation rules" field. It ...
user avatar
  • 81