Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [validation]

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

1
vote
2answers
39 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
30 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
29 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
22 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
22 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
11 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
33 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
120 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
120 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....
0
votes
1answer
124 views

Wffm 8.2 form validation not working on first submit

We are running Sitecore 8.2 and WFFM 8.2 and are in the process of setting up our first form. The only save action applied is the "Send email message", which is working as intended. The problem ...
2
votes
2answers
345 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
96 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
80 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
89 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
179 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. ...
1
vote
0answers
75 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 ...
4
votes
1answer
387 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
43 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 "...
5
votes
1answer
227 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
267 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
52 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
179 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 ...
5
votes
1answer
523 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
406 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
953 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
306 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
296 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 ...
3
votes
0answers
187 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
248 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
469 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
306 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
809 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....
8
votes
3answers
800 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
212 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
641 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 ...
5
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
370 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
194 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 ...
0
votes
1answer
426 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
837 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 ...
3
votes
2answers
2k views

How to implement character limit validation on Single-Line Text and Multi-Line Text fields?

I want to implement character limit on input by user on Single-Line text and Multi-Line Text fields. Please guide me.
0
votes
1answer
691 views

Remove 'Is valid XHtml' validation rule for Rich Text field

We have a Rich Text field where we are storing our email's html. When i try to save the item, i ended up with validation error like The field "EmailBody" contains (or lacks) some formatting ...
3
votes
2answers
569 views

Disable validation in WFFM forms, if required fields are in hidden mode

I have some fields hidden [required fields] in WFFM forms based on checkbox selection. My requirement is it should allow forms to submit while those fields hidden.If it should validate required field ...
5
votes
1answer
419 views

WFFM: Custom validator does not appear (Sitecore 8.1 Update 1)

I am implementing a custom validator for WFFM, to do so I followed the Sitecore documentation: https://doc.sitecore.net/web_forms_for_marketers/working_with_actions_and_validations/validations/...
2
votes
3answers
627 views

Validation Errors Not Showing Up in Experience Editor

Validation errors are not appearing in the experience editor for our shared QA environment. I have a content item that is identical in both environments (I packaged it up to make sure). On my local ...
10
votes
1answer
1k views

How do I enforce Alt tags on all images in Sitecore

Sitecore flags up empty Alt tags but it still lets users save them without setting the Alt tag. Is there an easy way to enforce that this is done for all new images? I know I could write a custom ...
5
votes
3answers
422 views

Validator bar not appearing for general link field

I am working with Sitecore 8.1 and I am having a strange issue. I have a General Link field called 'Login Link' on which I am trying set required field validation. I have selected 'Required' for all ...