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
1answer
33 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 ...
0
votes
1answer
36 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.
0
votes
2answers
61 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 ...
1
vote
0answers
15 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
30 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 ...
3
votes
2answers
107 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 ...
0
votes
0answers
28 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 ...
0
votes
2answers
61 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....
1
vote
1answer
127 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 ...
2
votes
1answer
28 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 ...
1
vote
2answers
93 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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
41 views

Sitecore 9 Validation rules [duplicate]

i'm using sitecore 9.1, i'm trying to add some validations to my fields, what i want to do is something like this: i have a field x, it's a checklist field, with two checkboxes for example: yes and ...
2
votes
1answer
53 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 ...
0
votes
0answers
38 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'...
0
votes
0answers
21 views

ItemValidator does not have new field values until saved [duplicate]

I've created an item validator that checks to see if there is a value in one of two fields (based on this answer). It works, but I would like it to prevent saving of the item if it's invalid. In order ...
2
votes
1answer
46 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 ...
1
vote
0answers
282 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
2answers
400 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....
2
votes
2answers
889 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? ...
6
votes
1answer
193 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 ...
2
votes
1answer
162 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. ...
5
votes
1answer
111 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 ...
0
votes
1answer
265 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. ...
2
votes
0answers
106 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 ...
7
votes
1answer
502 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). ...
1
vote
1answer
59 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 "...
6
votes
1answer
321 views

Sitecore 8.2 MVC site setup and Issues

I am creating a Sitecore 8.2 MVC test website and I am getting couple of errors and client form validation Issue. Get methods are working fine but post method is not working. I have exact same test ...
1
vote
1answer
361 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 ...
1
vote
0answers
72 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 ...
4
votes
0answers
261 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
1answer
817 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?
2
votes
0answers
510 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
1answer
1k 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. ...
1
vote
0answers
371 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 ...
2
votes
0answers
328 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 ...
4
votes
0answers
202 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 ...
5
votes
1answer
279 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 ...
1
vote
1answer
542 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 ...
11
votes
2answers
2k 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 ...
2
votes
1answer
385 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 ...
3
votes
1answer
1k 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....
9
votes
3answers
1k 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 ...
1
vote
1answer
227 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 ...
6
votes
2answers
829 views

Field level Validation Rule => “OnSave”?

I need an 8 characters length enforcing validator. I created a MaxLength=8 and combined it with a MinLength=8 validation rule. Then I enter "1234567890123' and it's saving, no question asked! It ...
6
votes
3answers
1k views

How to prevent publish item using validation rule?

I can publish an item with a blank field that have validation rule where required. How can I use workflow to prevent publish item with a blank field?
7
votes
2answers
481 views

How do i validate an image for byte-size in Content Editor?

I would like to Validate the Image Field say i shouldn't allow the image more than 1 MB. How do I do that in content editor?
2
votes
1answer
209 views

Markup button under proofing tab is not working in preview mode

I tried to markup my html using markup button in the proofing section in experience editor mode. It's working fine in Experience Editor mode but when the page is in Preview mode, on clicking the ...
1
vote
1answer
465 views

How to validate date in WFFM [closed]

Hi we need to validate date in web forms for marketers, should we make a custom field or override the script. Usually,i override the existing validation like date-picker field and etc and it works. ...
0
votes
1answer
1k views

The constructor to deserialize an object of type is not found

I'm trying to set a validation rule for max.length on a text field. The following code works. For the related item, if the text entered is more than 100 chars., it shows the sitecore validation ...